mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-20 07:20:59 +01:00
clientbot: use existing fallback hostname abstraction instead of hardcoding it separately
This commit is contained in:
parent
7230aaa7df
commit
a02fa45d96
@ -104,7 +104,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol):
|
|||||||
f('NICK %s' % nick)
|
f('NICK %s' % nick)
|
||||||
f('USER %s 8 * :%s' % (ident, realname))
|
f('USER %s 8 * :%s' % (ident, realname))
|
||||||
self.pseudoclient = User(nick, int(time.time()), self.uidgen.next_uid(prefix='@ClientbotInternal'), self.sid,
|
self.pseudoclient = User(nick, int(time.time()), self.uidgen.next_uid(prefix='@ClientbotInternal'), self.sid,
|
||||||
ident=ident, realname=realname, host='pylink.int')
|
ident=ident, realname=realname, host=self.hostname())
|
||||||
self.users[self.pseudoclient.uid] = self.pseudoclient
|
self.users[self.pseudoclient.uid] = self.pseudoclient
|
||||||
|
|
||||||
# Note: clientbot clients are initialized with umode +i by default
|
# Note: clientbot clients are initialized with umode +i by default
|
||||||
|
Loading…
x
Reference in New Issue
Block a user