]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
[plugin] insult, small fix
authorMatthias H <apoc@sixserv.org>
Thu, 20 Feb 2014 02:12:59 +0000 (03:12 +0100)
committerMatthias H <apoc@sixserv.org>
Thu, 20 Feb 2014 02:12:59 +0000 (03:12 +0100)
data/rbot/plugins/insult.rb

index 993450a554e9204ec4877fbd450d9eac5662b9a1..c79170c4807238038ee2ac3581d4de391cac804a 100644 (file)
@@ -234,6 +234,7 @@ class InsultPlugin < Plugin
     else
       msgto = m.channel
     end
+    msgto = m.source.to_s if not msgto
 
     insult = generate_insult
     @bot.say msgto, prefix + insult + suffix