Skip to content

Commit

Permalink
Change remaining references from nick to user
Browse files Browse the repository at this point in the history
  • Loading branch information
wjessop committed Sep 23, 2011
1 parent de7f65b commit a59ec60
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@
play "drama"
end

match "multi-condition match", :conditions => {:channel => [401839, "Monitoring"], :nick => ["Will Jessop", "Noah Lorang"]} do
match "multi-condition match", :conditions => {:channel => [401839, "Monitoring"], :user => ["Will Jessop", "Noah Lorang"]} do
# Reply in the current channel
say "multi-condition match"
end
Expand Down
2 changes: 1 addition & 1 deletion lib/scamp/action.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Actions are run in the context of a Scamp::Action.
# This allows us to make channel, nick etc. methods
# This allows us to make channel, user etc. methods
# available on a per-message basis
#

Expand Down
2 changes: 1 addition & 1 deletion lib/scamp/matcher.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def run(msg, match = nil)
def conditions_satisfied_by(msg)
bot.logger.debug "Checking message against #{conditions.inspect}"

# item will be :nick or :channel
# item will be :user or :channel
# cond is the int or string value.
conditions.each do |item, cond|
bot.logger.debug "Checking #{item} against #{cond}"
Expand Down

0 comments on commit a59ec60

Please sign in to comment.