summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/note.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/note.rb b/data/rbot/plugins/note.rb
index 8dfae361..59e1e6a0 100644
--- a/data/rbot/plugins/note.rb
+++ b/data/rbot/plugins/note.rb
@@ -45,10 +45,10 @@ class NotePlugin < Plugin
priv = []
@registry[nick].each do |n|
s = "[#{n.time.strftime('%b-%e %H:%M')}] <#{n.from}> #{n.text}"
- unless n.private or @bot.config['note.private_message']
- pub << s
- else
+ if n.private or @bot.config['note.private_message']
priv << s
+ else
+ pub << s
end
end
unless pub.empty?