Commit 1f4e41bf29201b9f28f8271bf724a7e6f39cbe49
- Diff rendering mode:
- inline
- side by side
IRCEvent.rb
(3 / 2)
|   | |||
| 36 | 36 | ||
| 37 | 37 | if @stats[0].match(/^PING/) | |
| 38 | 38 | @type = 'ping' | |
| 39 | elsif @message.match(/^(\x1(\w+))/) | ||
| 39 | elsif @message.match(/^(\x1(\w+))/) # ctcp | ||
| 40 | 40 | @from = @stats[0] | |
| 41 | @type = $2.downcase | ||
| 41 | ctcp = $2.downcase | ||
| 42 | @type = "ctcp_#{ctcp}" | ||
| 42 | 43 | ||
| 43 | 44 | @message.gsub!($1, "") | |
| 44 | 45 | elsif @stats[1] && @stats[1].match(/^\d+/) |

