1 |
4ae45b10
|
Ermal Luçi
|
# IRC - Internet Relay Chat - RFC 1459
|
2 |
66f2dd0e
|
Ermal Lu?i
|
# Pattern attributes: great fast fast
|
3 |
4ae45b10
|
Ermal Luçi
|
# Protocol groups: chat ietf_proposed_standard
|
4 |
|
|
# Wiki: http://www.protocolinfo.org/wiki/IRC
|
5 |
66f2dd0e
|
Ermal Lu?i
|
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
|
6 |
4ae45b10
|
Ermal Luçi
|
#
|
7 |
|
|
# Usually runs on port 6666 or 6667
|
8 |
|
|
# Note that chat traffic runs on these ports, but IRC-DCC traffic (which
|
9 |
|
|
# can use much more bandwidth) uses a dynamically assigned port, so you
|
10 |
|
|
# must have the IRC connection tracking module in your kernel to classify
|
11 |
|
|
# this.
|
12 |
|
|
#
|
13 |
|
|
# This pattern has been tested and is believed to work well.
|
14 |
|
|
|
15 |
|
|
irc
|
16 |
|
|
# First thing that happens is that the client sends NICK and USER, in
|
17 |
|
|
# either order. This allows MIRC color codes (\x02-\x0d instead of
|
18 |
|
|
# \x09-\x0d).
|
19 |
|
|
^(nick[\x09-\x0d -~]*user[\x09-\x0d -~]*:|user[\x09-\x0d -~]*:[\x02-\x0d -~]*nick[\x09-\x0d -~]*\x0d\x0a)
|