mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
classes.Irc: prettier __repr__
This commit is contained in:
parent
48831863d2
commit
55d9eb240f
@ -311,6 +311,9 @@ class Irc():
|
|||||||
# contents of Irc().pseudoclient change.
|
# contents of Irc().pseudoclient change.
|
||||||
self.callHooks([self.sid, 'PYLINK_SPAWNMAIN', {'olduser': olduserobj}])
|
self.callHooks([self.sid, 'PYLINK_SPAWNMAIN', {'olduser': olduserobj}])
|
||||||
|
|
||||||
|
def __repr__(self):
|
||||||
|
return "<classes.Irc object for %r>" % self.name
|
||||||
|
|
||||||
class IrcUser():
|
class IrcUser():
|
||||||
def __init__(self, nick, ts, uid, ident='null', host='null',
|
def __init__(self, nick, ts, uid, ident='null', host='null',
|
||||||
realname='PyLink dummy client', realhost='null',
|
realname='PyLink dummy client', realhost='null',
|
||||||
|
Loading…
Reference in New Issue
Block a user