mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-02 17:29:22 +01:00
No notes to self.
This commit is contained in:
parent
d64bc77b5a
commit
1c69d9746c
@ -126,6 +126,9 @@ class Later(callbacks.Privmsg):
|
||||
Tells <nick> <text> the next time <nick> is in seen.
|
||||
"""
|
||||
(nick, text) = privmsgs.getArgs(args, required=2)
|
||||
if ircutils.strEqual(nick, irc.nick):
|
||||
irc.error('I can\'t send notes to myself.')
|
||||
return
|
||||
try:
|
||||
self._addNote(nick, msg.nick, text)
|
||||
irc.replySuccess()
|
||||
|
Loading…
Reference in New Issue
Block a user