smuxi-incorrect_PASS_handling.patch

Patch fixing the bug - Redmine Admin, 12/29/2008 07:27 PM

Download (2 KB)

 
src/Engine-IRC/Protocols/Irc/IrcProtocolManager.cs (copia locale)
701 701
                port = 6667;
702 702
            }
703 703
            
704
            string pass;                
705
            if (cd.DataArray.Length >=5) {
706
                pass = cd.DataArray[4];
704
            string[] nicks;
705
            if (cd.DataArray.Length >= 5) {
706
                nicks = new string[] {cd.DataArray[4]};
707 707
            } else {
708
                pass = null;
708
                nicks = (string[])Session.UserConfig["Connection/Nicknames"];
709 709
            }
710
            
711
            string[] nicks;
710

  
711
            string pass;
712 712
            if (cd.DataArray.Length >= 6) {
713
                nicks = new string[] {cd.DataArray[5]};
713
                pass = cd.DataArray[5];
714 714
            } else {
715
                nicks = (string[])Session.UserConfig["Connection/Nicknames"];
715
                pass = null;
716 716
            }
717 717
            
718 718
            string username = (string)Session.UserConfig["Connection/Username"];
src/Frontend-GNOME/MainWindow.cs (copia locale)
497 497
                    Frontend.Session.SessionChat,
498 498
                    "/",
499 499
                    String.Format(
500
                        "/connect {0} {1} {2} {3}",
500
                        "/connect {0} {1} {2} {3} {4}",
501 501
                        server.Protocol,
502 502
                        server.Hostname,
503 503
                        server.Port,
......
505 505
                        server.Password
506 506
                    )
507 507
                );
508

  
508 509
                Frontend.Session.CommandConnect(cmd);
509 510
            } catch (Exception ex) {
510 511
                Frontend.ShowException(this, ex);