From c4f6d626d5d3bc81f8f26b0a64d15309ec27f763 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 15 Jun 2017 21:54:40 -0700 Subject: [PATCH] Drop Irc prefix from IrcServer/User/Channel classes --- classes.py | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/classes.py b/classes.py index 1e1c991..76187bd 100644 --- a/classes.py +++ b/classes.py @@ -1260,7 +1260,7 @@ class PyLinkIRCNetwork(PyLinkNetworkCoreWithUtils): Irc = PyLinkIRCNetwork -class IrcUser(): +class User(): """PyLink IRC user class.""" def __init__(self, nick, ts, uid, server, ident='null', host='null', realname='PyLink dummy client', realhost='null', @@ -1299,14 +1299,15 @@ class IrcUser(): def __repr__(self): return 'IrcUser(%s/%s)' % (self.uid, self.nick) +IrcUser = User -class IrcServer(): +class Server(): """PyLink IRC server class. - uplink: The SID of this IrcServer instance's uplink. This is set to None - for the main PyLink PseudoServer! + uplink: The SID of this PyLinkServer instance's uplink. This is set to None + for the main PyLink server. name: The name of the server. - internal: Whether the server is an internal PyLink PseudoServer. + internal: Whether the server is an internal PyLink server. """ def __init__(self, uplink, name, internal=False, desc="(None given)"): @@ -1318,8 +1319,9 @@ class IrcServer(): def __repr__(self): return 'IrcServer(%s)' % self.name +IrcServer = Server -class IrcChannel(): +class Channel(): """PyLink IRC channel class.""" def __init__(self, name=None): # Initialize variables, such as the topic, user list, TS, who's opped, etc. @@ -1420,6 +1422,7 @@ class IrcChannel(): result.append(mode) return sorted(result, key=self.sortPrefixes) +IrcChannel = Channel class Protocol(): """Base Protocol module class for PyLink."""