Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
make note plugin pm notes
  • Loading branch information
igorw committed Sep 12, 2010
1 parent e227f9a commit 39311df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/note.rb
Expand Up @@ -15,7 +15,7 @@ def initialize(*args)

def listen(m)
if @notes.key?(m.user.nick) && @notes[m.user.nick].size > 0
m.reply "#{m.user.nick}: You have notes type !getnotes to retrieve them."
m.reply "#{m.user.nick}: You have notes, type !getnotes to retrieve them."
end
end

Expand All @@ -27,7 +27,7 @@ def execute(m, nick, note)
def execute_getnotes(m)
if @notes.key?(m.user.nick)
while note = @notes[m.user.nick].shift
m.reply note.to_s
bot.msg m.user.nick, note.to_s
end
@notes[m.user.nick] = []
else
Expand Down

0 comments on commit 39311df

Please sign in to comment.