mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Make Topic.add and Topic.change agree on how strict they are with users adding
and changing topic items (i.e., they now both fallback on simply the nick whenever a registered username is unavailable)
This commit is contained in:
parent
0b48743065
commit
bfea2fcc3f
@ -245,8 +245,9 @@ class Topic(callbacks.Privmsg):
|
||||
try:
|
||||
senderName = ircdb.users.getUser(msg.prefix).name
|
||||
except KeyError:
|
||||
irc.errorNoUser()
|
||||
return
|
||||
senderName = msg.nick
|
||||
# irc.errorNoUser()
|
||||
# return
|
||||
if name and name != senderName and \
|
||||
not ircdb.checkCapabilities(msg.prefix, ('op', 'admin')):
|
||||
irc.error('You can only modify your own topics.')
|
||||
|
Loading…
Reference in New Issue
Block a user