Changeset 36b162b56fcf47ea93e9fd7c8e206bd80fe6d1ed for lib
- Timestamp:
- 11/04/08 00:38:35 (2 months ago)
- git-parent:
- Files:
-
- lib/rbot/core/auth.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
lib/rbot/core/auth.rb
rb6e6d0c r36b162b 243 243 end 244 244 245 # pseudo-message to find the template. The source is ignored, and the 246 # target is set according to where the template should be checked 247 # (public or private) 248 # This might still fail in the case of 'everywhere' for commands there are 249 # really only private 250 case where 251 when :"?" 252 pseudo_target = @bot.myself 253 when :* 254 pseudo_target = m.channel 245 if p.has_key? :auth_path 246 auth_path = p[:auth_path] 255 247 else 256 pseudo_target = m.server.channel(where) 257 end 258 259 pseudo = PrivMessage.new(bot, m.server, m.source, pseudo_target, p[:stuff].to_s) 260 261 auth_path = find_auth(pseudo) 248 # pseudo-message to find the template. The source is ignored, and the 249 # target is set according to where the template should be checked 250 # (public or private) 251 # This might still fail in the case of 'everywhere' for commands there are 252 # really only private 253 case where 254 when :"?" 255 pseudo_target = @bot.myself 256 when :* 257 pseudo_target = m.channel 258 else 259 pseudo_target = m.server.channel(where) 260 end 261 262 pseudo = PrivMessage.new(bot, m.server, m.source, pseudo_target, p[:stuff].to_s) 263 264 auth_path = find_auth(pseudo) 265 end 262 266 debug auth_path 263 267
