From 095a126c82c0fc886b15296942588aabbf49b4f6 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 28 Apr 2013 08:54:03 +0200 Subject: [PATCH] note: if is more readale than unless here --- data/rbot/plugins/note.rb | 6 +++--- 1 file 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? -- 2.32.0.93.g670b81a890