mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
classes: add services_account field in IrcUser (#25), default 'identified' attribute to empty string instead of None
This commit is contained in:
parent
584f952113
commit
cf15bed58d
12
classes.py
12
classes.py
@ -524,10 +524,18 @@ class IrcUser():
|
||||
self.realhost = realhost
|
||||
self.ip = ip
|
||||
self.realname = realname
|
||||
self.modes = set()
|
||||
self.modes = set() # Tracks user modes
|
||||
|
||||
self.identified = False
|
||||
# Tracks PyLink identification status
|
||||
self.identified = ''
|
||||
|
||||
# Tracks services identification status
|
||||
self.services_account = ''
|
||||
|
||||
# Tracks channels the user is in
|
||||
self.channels = set()
|
||||
|
||||
# Tracks away message status
|
||||
self.away = ''
|
||||
|
||||
# This sets whether the client should be marked as manipulatable.
|
||||
|
@ -120,6 +120,6 @@ def remote(irc, source, args):
|
||||
try: # Remotely call the command (use the PyLink client as a dummy user).
|
||||
remoteirc.callCommand(remoteirc.pseudoclient.uid, cmd_args)
|
||||
finally: # Remove the identification override after we finish.
|
||||
remoteirc.pseudoclient.identified = False
|
||||
remoteirc.pseudoclient.identified = ''
|
||||
|
||||
irc.reply("Done.")
|
||||
|
Loading…
Reference in New Issue
Block a user