aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Utils.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Utils.py b/Utils.py
index 7c87e495..b9a442dc 100644
--- a/Utils.py
+++ b/Utils.py
@@ -45,6 +45,11 @@ class IRCHostmask(object):
self.username = username
self.hostname = hostname
self.hostmask = hostmask
+ def __repr__(self):
+ return "Utils.IRCHostmask(%s)" % self.__str__()
+ def __str__(self):
+ return self.hostmask
+
def seperate_hostmask(hostmask):
hostmask = remove_colon(hostmask)
first_delim = hostmask.find("!")