Closed blowback closed 12 years ago
Speculatively calling User.unmonitor() causes an error if we haven't called User.monitor() for that user:
User.unmonitor()
User.monitor()
lib/cinch/user.rb:392:in `unmonitor': undefined method `stop' for nil:NilClass (NoMethodError)
I have enclosed the guts of User.unmonitor() in a conditional as a workaround:
def unmonitor if monitored ... end end
It is convenient to be able to speculatively call unmonitor() without calling monitored() first.
Good catch. Closed by 6de010e which got commited to both the maint and master branch.
Speculatively calling
User.unmonitor()
causes an error if we haven't calledUser.monitor()
for that user:I have enclosed the guts of
User.unmonitor()
in a conditional as a workaround:It is convenient to be able to speculatively call unmonitor() without calling monitored() first.