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:
parent
eb24e01619
commit
d2a3a64293
@ -61,8 +61,7 @@ class ClientbotWrapperProtocol(Protocol):
|
|||||||
# services_support fires.
|
# services_support fires.
|
||||||
f('NICK %s' % (self.irc.serverdata.get('pylink_nick') or conf.conf["bot"].get("nick", "PyLink")))
|
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")
|
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,
|
f('USER %s 8 * %s' % (ident, # TODO: per net realnames or hostnames aren't implemented yet.
|
||||||
# TODO: per net realnames or hostnames aren't implemented yet.
|
|
||||||
conf.conf["bot"].get("realname", "PyLink Clientbot")))
|
conf.conf["bot"].get("realname", "PyLink Clientbot")))
|
||||||
|
|
||||||
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
def spawnClient(self, nick, ident='null', host='null', realhost=None, modes=set(),
|
||||||
|
Loading…
Reference in New Issue
Block a user