Skip to content

Commit 713b933

Browse files
committed
fix annoying bug in unbind()
By looking at commit 9943484309743c255e7478eec88764b6fba7d09e in EM it seems that class.originalmethod(:unbind) is probably returning info about _that_ newly added unbind method and that the documentation in EM is lacking / not updated.
1 parent 87f1748 commit 713b933

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/em-irc/client.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@ def ready
167167
end
168168

169169
# @private
170-
def unbind(ignored)
170+
def unbind(reason)
171+
log Logger::INFO "Unbind reason: #{reason}" if reason != nil
171172
trigger(:disconnect)
172173
end
173174

0 commit comments

Comments
 (0)