diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-04-28 08:54:03 +0200 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2013-04-28 08:54:03 +0200 |
commit | 095a126c82c0fc886b15296942588aabbf49b4f6 (patch) | |
tree | bc7ff6d6001e818257aa7365a69684d91ddba0c3 /data/rbot | |
parent | 25e6485b736b2b14509738169eedee431dc86be4 (diff) |
note: if is more readale than unless here
Diffstat (limited to 'data/rbot')
-rw-r--r-- | data/rbot/plugins/note.rb | 6 |
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? |