Skip to content

Commit

Permalink
fix per-network throttling
Browse files Browse the repository at this point in the history
the Network class was using a wrong instance variable for determining
the network.
  • Loading branch information
dominikh committed Mar 7, 2012
1 parent a91f290 commit 86fcc16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cinch/network.rb
Expand Up @@ -82,7 +82,7 @@ def unknown_ircd?
# @return [Numeric] The `messages per second` value that best suits
# the current network
def default_messages_per_second
case @network
case @name
when :freenode
0.7
else
Expand All @@ -93,7 +93,7 @@ def default_messages_per_second
# @return [Integer] The `server queue size` value that best suits
# the current network
def default_server_queue_size
case @network
case @name
when :quakenet
40
else
Expand Down

0 comments on commit 86fcc16

Please sign in to comment.