From 8efdfd2651a720e0dc1681e716d0a23b0429e4fd Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 12 Sep 2007 19:17:24 +0000 Subject: Irc::IrcSocket -> Irc::Socket --- lib/rbot/ircbot.rb | 2 +- lib/rbot/ircsocket.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/rbot/ircbot.rb b/lib/rbot/ircbot.rb index e1713840..4debf1cb 100644 --- a/lib/rbot/ircbot.rb +++ b/lib/rbot/ircbot.rb @@ -486,7 +486,7 @@ class Bot debug "server.list is now #{@config['server.list'].inspect}" end - @socket = IrcSocket.new(@config['server.list'], @config['server.bindhost'], @config['server.sendq_delay'], @config['server.sendq_burst'], :ssl => @config['server.ssl']) + @socket = Irc::Socket.new(@config['server.list'], @config['server.bindhost'], @config['server.sendq_delay'], @config['server.sendq_burst'], :ssl => @config['server.ssl']) @client = Client.new @plugins.scan diff --git a/lib/rbot/ircsocket.rb b/lib/rbot/ircsocket.rb index 9bdf43a0..0c669abd 100644 --- a/lib/rbot/ircsocket.rb +++ b/lib/rbot/ircsocket.rb @@ -212,7 +212,7 @@ module Irc # wrapped TCPSocket for communication with the server. # emulates a subset of TCPSocket functionality - class IrcSocket + class Socket MAX_IRC_SEND_PENALTY = 10 @@ -262,7 +262,7 @@ module Irc # server_list:: list of servers to connect to # host:: optional local host to bind to (ruby 1.7+ required) - # create a new IrcSocket + # create a new Irc::Socket def initialize(server_list, host, sendq_delay=2, sendq_burst=4, opts={}) @server_list = server_list.dup @server_uri = nil -- cgit v1.2.3