3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

clientbot: use rfc2812-style USER, kthx

This commit is contained in:
James Lu 2016-07-20 22:02:44 -07:00
parent eb24e01619
commit d2a3a64293

View File

@ -61,8 +61,7 @@ class ClientbotWrapperProtocol(Protocol):
# services_support fires.
f('NICK %s' % (self.irc.serverdata.get('pylink_nick') or conf.conf["bot"].get("nick", "PyLink")))
ident = self.irc.serverdata.get('pylink_ident') or conf.conf["bot"].get("ident", "pylink")
f('USER %s %s 0.0.0.0 %s' % (ident, ident,
# TODO: per net realnames or hostnames aren't implemented yet.
f('USER %s 8 * %s' % (ident, # TODO: per net realnames or hostnames aren't implemented yet.
conf.conf["bot"].get("realname", "PyLink Clientbot")))
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),