diff --git a/src/IRCUser.py b/src/IRCUser.py index 6cc1c506..8266febd 100644 --- a/src/IRCUser.py +++ b/src/IRCUser.py @@ -33,7 +33,9 @@ class User(IRCObject.Object): return self.nickname def hostmask(self) -> str: - return "%s!%s@%s" % (self.nickname, self.username, self.hostname) + if self.nickname and self.username and self.hostname: + return "%s!%s@%s" % (self.nickname, self.username, self.hostname) + return None def get_id(self)-> int: return (self.identified_account_id_override or