]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/ircbot.rb
[webservice] control bot through http interface
[user/henk/code/ruby/rbot.git] / lib / rbot / ircbot.rb
index 0a8b1aa2ab87ec673f83148418cdb4ad6ae30c0b..a342e8c136151c0ed2e26422f3930a0ecd9f91db 100644 (file)
@@ -1128,6 +1128,12 @@ class Bot
     where = ds[:dest]
     filtered = ds[:text]
 
+    if defined? WebServiceUser and where.instance_of? WebServiceUser
+      debug 'sendmsg to web service!'
+      where.response << filtered
+      return
+    end
+
     # For starters, set up appropriate queue channels and rings
     mchan = opts[:queue_channel]
     mring = opts[:queue_ring]