Changeset 6242
- Timestamp:
- 02/05/08 21:43:51 (5 years ago)
- Location:
- lang/ruby/net-irc/trunk/examples
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/net-irc/trunk/examples/nig.rb
r6241 r6242 71 71 end 72 72 73 def xmpp_bot_id73 def jabber_bot_id 74 74 nil 75 75 end -
lang/ruby/net-irc/trunk/examples/tig.rb
r6241 r6242 364 364 im.received_messages.each do |msg| 365 365 if msg.from.strip == jabber_bot_id 366 @log.debug msg.inspect 366 367 body = msg.body.sub(/^(.+)(?:\((.+?)\))?: /, "") 367 nick, id = Regexp.last_match.captures 368 @log.debug msg.inspect 369 message(nick, main_channel, body) 368 if Regexp.last_match 369 nick, id = Regexp.last_match.captures 370 message(nick, main_channel, body) 371 end 370 372 end 371 373 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)