Skip to content

Commit

Permalink
fix annoying bug in unbind()
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
giganteous committed Mar 5, 2014
1 parent 87f1748 commit 713b933
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/em-irc/client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,8 @@ def ready
end

# @private
def unbind(ignored)

This comment has been minimized.

Copy link
@coreylendo

coreylendo Apr 5, 2017

Fix

def unbind(reason)
log Logger::INFO "Unbind reason: #{reason}" if reason != nil
trigger(:disconnect)
end

Expand Down

0 comments on commit 713b933

Please sign in to comment.