aboutsummaryrefslogtreecommitdiff
path: root/core/irc.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-22 05:06:46 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-04-22 05:06:46 -0700
commit5fecb1fcc8f24bed19521a5034db5756d4b11612 (patch)
tree71466fd01d2ca45f05373c9b5281617d74c6730f /core/irc.rb
parent7f94ea0c30bee85c0eecbd4ccb4c8e7efb3889bb (diff)
downloaddinobot-5fecb1fcc8f24bed19521a5034db5756d4b11612.tar.gz
dinobot-5fecb1fcc8f24bed19521a5034db5756d4b11612.tar.xz
Clean up code and add aliaser class.
Diffstat (limited to 'core/irc.rb')
-rw-r--r--core/irc.rb3
1 files changed, 1 insertions, 2 deletions
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