]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/rfc2812.rb
use a db env for the databases to avoid some corruption problems (I hope)
[user/henk/code/ruby/rbot.git] / lib / rbot / rfc2812.rb
index e7e527b933c4899c4e56b9f7de1a6b88136b2cde..4b19d5862cd571f7280317d11b954f1d5f16f7a8 100644 (file)
@@ -890,6 +890,9 @@ module Irc
       when 'PING'
         data[:pingid] = argv[0]
         handle(:ping, data)
+      when 'PONG'
+        data[:pingid] = argv[0]
+        handle(:pong, data)
       when /^(\d+)$/           # numeric server message
         num=command.to_i
         case num
@@ -1040,7 +1043,7 @@ module Irc
         handle(:privmsg, data)
         
         # Now we split it
-        if(data[:target] =~ /^(#|&).*/)
+        if(data[:target] =~ /^[#&!+].*/)
           handle(:public, data)
         else
           handle(:msg, data)