Add IRCUser.hostmask() to format nick/user/host in to a hostmask
This commit is contained in:
parent
9026f722c1
commit
10ca8a1219
1 changed files with 3 additions and 0 deletions
|
@ -32,6 +32,9 @@ class User(IRCObject.Object):
|
|||
def __str__(self) -> str:
|
||||
return self.nickname
|
||||
|
||||
def hostmask(self) -> str:
|
||||
return "%s!%s@%s" % (self.nickname, self.username, self.hostname)
|
||||
|
||||
def get_id(self)-> int:
|
||||
return (self.identified_account_id_override or
|
||||
self.identified_account_id or self._id)
|
||||
|
|
Loading…
Reference in a new issue