3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

classes: add services_account field in IrcUser (#25), default 'identified' attribute to empty string instead of None

This commit is contained in:
James Lu 2016-02-07 18:09:02 -08:00
parent 584f952113
commit cf15bed58d
2 changed files with 11 additions and 3 deletions

View File

@ -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.

View File

@ -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.")