3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 19:52:53 +01:00

classes.Irc: prettier __repr__

This commit is contained in:
James Lu 2015-09-28 19:25:45 -07:00
parent 48831863d2
commit 55d9eb240f

View File

@ -311,6 +311,9 @@ class Irc():
# contents of Irc().pseudoclient change.
self.callHooks([self.sid, 'PYLINK_SPAWNMAIN', {'olduser': olduserobj}])
def __repr__(self):
return "<classes.Irc object for %r>" % self.name
class IrcUser():
def __init__(self, nick, ts, uid, ident='null', host='null',
realname='PyLink dummy client', realhost='null',