mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
Drop Irc prefix from IrcServer/User/Channel classes
This commit is contained in:
parent
d98d522387
commit
c4f6d626d5
15
classes.py
15
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."""
|
||||
|
Loading…
Reference in New Issue
Block a user