Skip to content

Commit

Permalink
had to allow for registration time
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Rozet <simon@rozet.name>
  • Loading branch information
syd authored and sr committed Jan 3, 2009
1 parent d223a8a commit 348e9e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions shout-bot.rb
Expand Up @@ -47,6 +47,7 @@ def initialize(server, port, nick)
@socket = TCPSocket.open(server, port)
@socket.puts "NICK #{nick}"
@socket.puts "USER #{nick} #{nick} #{nick} :#{nick}"
sleep 1
yield self
@socket.puts "QUIT"
@socket.gets until @socket.eof?
Expand Down

0 comments on commit 348e9e2

Please sign in to comment.