]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
note: if is more readale than unless here
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 28 Apr 2013 06:54:03 +0000 (08:54 +0200)
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>
Sun, 28 Apr 2013 06:54:03 +0000 (08:54 +0200)
data/rbot/plugins/note.rb

index 8dfae36148f3f642e10b938f2d8ab6f6203ee038..59e1e6a0a175adbcc39a318c66fada8e850d86a6 100644 (file)
@@ -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?