coffeemaker 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -30,6 +30,9 @@ module Coffeemaker
|
|
|
30
30
|
@logger.debug "received #{data}"
|
|
31
31
|
|
|
32
32
|
case msg.command
|
|
33
|
+
when :'001'
|
|
34
|
+
on_connect.call if on_connect
|
|
35
|
+
succeed
|
|
33
36
|
when :ping
|
|
34
37
|
send_command :pong
|
|
35
38
|
when :privmsg, :topic, :part, :join
|
|
@@ -75,11 +78,6 @@ module Coffeemaker
|
|
|
75
78
|
_send_command :user, [@user] * 4
|
|
76
79
|
_send_command :pass, @pass if @pass
|
|
77
80
|
_send_command :nick, @nick
|
|
78
|
-
|
|
79
|
-
EM.add_timer(1) do
|
|
80
|
-
on_connect.call if on_connect
|
|
81
|
-
succeed
|
|
82
|
-
end
|
|
83
81
|
end
|
|
84
82
|
end
|
|
85
83
|
end
|
data/lib/coffeemaker/version.rb
CHANGED