aboutsummaryrefslogtreecommitdiff
path: root/IRCUser.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-06 18:06:29 +0100
committerGravatar jesopo2018-09-06 18:06:29 +0100
commitc8309d96eafb354b6f6f5d21226b4869c6176207 (patch)
tree24eb59a7d0355cca32d817e449ed419add8ba38b /IRCUser.py
parentFinally implement auto_mode.py! (diff)
signature
Only do automode when a user is identified, also do automode on an IRCv3
ACCOUNT command
Diffstat (limited to 'IRCUser.py')
-rw-r--r--IRCUser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/IRCUser.py b/IRCUser.py
index eea2d532..1bb7ad13 100644
--- a/IRCUser.py
+++ b/IRCUser.py
@@ -26,6 +26,8 @@ class User(object):
def get_id(self):
return (self.identified_account_id_override or
self.identified_account_id or self._id)
+ def get_identified_account(self):
+ return (self.identified_account_override or self.identified_account)
def set_nickname(self, nickname):
self.nickname = nickname