mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 12:12:54 +01:00
Fixed bug in addhostmask.
This commit is contained in:
parent
e729b430b6
commit
0293a2ba0d
@ -120,7 +120,8 @@ class UserCommands(callbacks.Privmsg):
|
|||||||
irc.error(msg, conf.replyNoUser)
|
irc.error(msg, conf.replyNoUser)
|
||||||
return
|
return
|
||||||
try:
|
try:
|
||||||
_ = ircdb.users.getUserId(hostmask)
|
otherId = ircdb.users.getUserId(hostmask)
|
||||||
|
if otherId != id:
|
||||||
irc.error(msg, 'That hostmask is already registered.')
|
irc.error(msg, 'That hostmask is already registered.')
|
||||||
return
|
return
|
||||||
except KeyError:
|
except KeyError:
|
||||||
|
Loading…
Reference in New Issue
Block a user