Change USER params to conform to RFC2812 and ircv3 recommendations.

This commit is contained in:
Ryan Schmidt 2018-07-24 08:25:28 -07:00
parent 34da084a94
commit 0183d4af00
No known key found for this signature in database
GPG Key ID: E0F0AE21C1C0CB86

View File

@ -376,7 +376,7 @@ class IRCClient:
msg = "PRIVMSG {0} :{1}"
self.send(msg.format(nickserv, cmdtext), log=msg.format(nickserv, logtext))
def user(self, ident, rname):
self.send("USER", ident, self.host, self.host, ":{0}".format(rname or ident))
self.send("USER", ident, "0", "*", ":{0}".format(rname or ident))
def mainLoop(self):
conn = self.connect()
while True: