mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
Fixed a _really stupid_ error message buglet. Man I suck sometimes.
This commit is contained in:
parent
cb5c22c9dc
commit
7b0af3d67f
@ -468,7 +468,7 @@ class MoobotFactoids(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
if locked_by is None:
|
if locked_by is None:
|
||||||
irc.error(msg, "Factoid '%r is not locked." % key)
|
irc.error(msg, "Factoid %r is not locked." % key)
|
||||||
return
|
return
|
||||||
# Can only lock/unlock own factoids unless you're an admin
|
# Can only lock/unlock own factoids unless you're an admin
|
||||||
if not (ircdb.checkCapability(id, 'admin') or created_by == id):
|
if not (ircdb.checkCapability(id, 'admin') or created_by == id):
|
||||||
|
Loading…
Reference in New Issue
Block a user