Issue #2 resolved

PASS command does not work

Jakob Kramer
created an issue

The IRC specification says:

The password can and must be set before any attempt to register the connection is made. Currently this requires that clients send a PASS command before sending the NICK/USER combination**

The fix is that (I have no clue how to work with Mercurial):

diff -r 1286577994dc pypeul.py
--- a/pypeul.py Sun Feb 02 12:25:40 2014 +0100
+++ b/pypeul.py Thu Apr 24 01:44:28 2014 +0200
@@ -791,12 +791,12 @@
         self.myself.realname = realname
         self.myself.password = password

+        if password:
+            self.send('PASS', password)
+
         self.nick(nick)
         self.send('USER', ident, nick, nick, last=realname)

-        if password:
-            self.send('PASS', password)
-
     def nick(self, nick):
         self.send('NICK', nick)

Comments (4)

  1. Log in to comment