Add IRCServer.hostmask() to construct our nick!user@host hostmask

This commit is contained in:
jesopo 2019-02-10 20:44:29 +00:00
parent a3b9be3d3d
commit 89f035fdcf

View file

@ -91,6 +91,9 @@ class Server(IRCObject.Object):
def fileno(self) -> int:
return self.cached_fileno or self.socket.fileno()
def hostmask(self):
return "%s!%s@%s" % (self.nickname, self.username, self.hostname)
def tls_wrap(self):
client_certificate = self.bot.config.get("tls-certificate", None)
client_key = self.bot.config.get("tls-key", None)