From 5fecb1fcc8f24bed19521a5034db5756d4b11612 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Tue, 22 Apr 2014 05:06:46 -0700 Subject: Clean up code and add aliaser class. --- core/irc.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'core/irc.rb') diff --git a/core/irc.rb b/core/irc.rb index fdb2ad7..d682299 100644 --- a/core/irc.rb +++ b/core/irc.rb @@ -17,7 +17,6 @@ module Dinobot def connect @logger.info "Connecting to #{@server}:#{@port}." - @socket = TCPSocket.new(@server, @port) puts "PASS #{@pass}" if @pass @@ -26,6 +25,7 @@ module Dinobot end def disconnect + @logger.info 'Disconnecting.' @socket.close end @@ -44,7 +44,6 @@ module Dinobot def puts(str) @logger.out str.inspect - @socket.puts str end -- cgit v1.2.3-70-g09d2