From a02fa45d96b30712f794856b367378e2506f139b Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 24 Aug 2017 01:12:45 -0700 Subject: [PATCH] clientbot: use existing fallback hostname abstraction instead of hardcoding it separately --- protocols/clientbot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/clientbot.py b/protocols/clientbot.py index 28a81a3..6e9d85b 100644 --- a/protocols/clientbot.py +++ b/protocols/clientbot.py @@ -104,7 +104,7 @@ class ClientbotWrapperProtocol(IRCCommonProtocol): f('NICK %s' % nick) f('USER %s 8 * :%s' % (ident, realname)) 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 # Note: clientbot clients are initialized with umode +i by default