summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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