mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 10:34:19 +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.
|
Tells <nick> <text> the next time <nick> is in seen.
|
||||||
"""
|
"""
|
||||||
(nick, text) = privmsgs.getArgs(args, required=2)
|
(nick, text) = privmsgs.getArgs(args, required=2)
|
||||||
|
if ircutils.strEqual(nick, irc.nick):
|
||||||
|
irc.error('I can\'t send notes to myself.')
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
self._addNote(nick, msg.nick, text)
|
self._addNote(nick, msg.nick, text)
|
||||||
irc.replySuccess()
|
irc.replySuccess()
|
||||||
|
Loading…
Reference in New Issue
Block a user