No notes to self.

This commit is contained in:
Jeremy Fincher 2004-08-12 07:40:11 +00:00
parent d64bc77b5a
commit 1c69d9746c
1 changed files with 3 additions and 0 deletions

View File

@ -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()