summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-20 13:26:20 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2006-12-20 13:26:20 +0000
commit8aabf15ea34903a42eda615d9d04c9c76b72bae0 (patch)
treea454226a460146a76ee826e014630b3708f3e09a
parent6ed155c0910811316c0c87da802e9d1478a474bc (diff)
Fix 'Unknown command' being received from server
-rw-r--r--lib/rbot/ircbot.rb2
-rw-r--r--lib/rbot/ircsocket.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb
index bbb7c16c..66a364f9 100644
--- a/lib/rbot/ircbot.rb
+++ b/lib/rbot/ircbot.rb
@@ -924,7 +924,7 @@ class IrcBot
# we want to respond to a hung server within 30 secs or so
@ping_timer = @timer.add(30) {
@last_ping = Time.now
- @socket.queue "PING :rbot"
+ sendq "PING :rbot"
}
@pong_timer = @timer.add(10) {
unless @last_ping.nil?
diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb
index 6b49cf00..53182195 100644
--- a/lib/rbot/ircsocket.rb
+++ b/lib/rbot/ircsocket.rb
@@ -472,7 +472,7 @@ module Irc
if @sock.nil?
error "SEND attempted on closed socket"
else
- @sock.puts(message + "\n",0)
+ @sock.puts message
@last_send = Time.new
@flood_send += message.irc_send_penalty if penalty
@lines_sent += 1