mirror of
https://github.com/SpiceBot/SpiceBot.git
synced 2026-11-13 15:09:54 -05:00
ident better
This commit is contained in:
parent
3b96eac446
commit
c59a36e278
@ -41,9 +41,7 @@ class BotUsers():
|
|||||||
raise Exception('ID ' + str(nick) + ' does not appear to be associated with a nick')
|
raise Exception('ID ' + str(nick) + ' does not appear to be associated with a nick')
|
||||||
else:
|
else:
|
||||||
nick_id = self.whois_ident(nick)
|
nick_id = self.whois_ident(nick)
|
||||||
self.add_to_all(nick, nick_id)
|
return nick_id
|
||||||
self.add_to_current(nick, nick_id)
|
|
||||||
return self.dict["current"][nick_id]["nick"]
|
|
||||||
|
|
||||||
def whois_ident(self, nick):
|
def whois_ident(self, nick):
|
||||||
nick = Identifier(nick)
|
nick = Identifier(nick)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user