]> arthur.barton.de Git - ngircd.git/commit
irc.c: Fix handling of channels containing dots
authorFlorian Westphal <fw@strlen.de>
Sat, 17 Jan 2009 23:12:28 +0000 (00:12 +0100)
committerFlorian Westphal <fw@strlen.de>
Sat, 17 Jan 2009 23:20:38 +0000 (00:20 +0100)
commit95e8320ca99eb9546102d10a329d708458257c56
treeca53808872e837a072e0e92fd63e65aa1df59a7f
parent8f46681bc86162936ffdf56d7f534221ba20fbf5
irc.c: Fix handling of channels containing dots

commit 2546a13ad2949192eb70bf21e114ec60af287ee4
('Cumulative Message Patch') broke PRIVMSG to channels
containing dots.

Fix this by switching evaluation order:
Check first if the target matches a existing channel and only do a check
for target masks if that failed.

PRIVMSG with host/server masks is described in RFC 2812, section 3.3.1.

Makes one wonder how a server is _really_ supposed to tell the difference
between hostmasks and channel names.

Sigh.
src/ngircd/irc.c