Project

General

Profile

Download (829 Bytes) Statistics
| Branch: | Tag: | Revision:
1
# IRC - Internet Relay Chat - RFC 1459
2
# Pattern attributes: great fast fast
3
# Protocol groups: chat ietf_proposed_standard
4
# Wiki: http://www.protocolinfo.org/wiki/IRC
5
# Copyright (C) 2008 Matthew Strait, Ethan Sommer; See ../LICENSE
6
#
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)
20

    
(62-62/146)