]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Block nicknames that are reserved for services
authorAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 10:33:21 +0000 (12:33 +0200)
committerAlexander Barton <alex@barton.de>
Sun, 26 Aug 2012 10:33:21 +0000 (12:33 +0200)
This patch introduces the new function Conf_NickIsBlocked() which checks
if a given nick name matches with the "service mask" of a configured server.
And Client_CheckNick() uses this information to deny such names for regular
IRC users.

So nick names intended for IRC services are more protected and can't be used
by regular users even when the "services pseudo-server" isn't connected to
the network.

But please note:

Up to now, there can be only one "ServiceMask" pattern per server, which
most probably blocks much more nick names than really required ...
So "ServiceMask" should allow more than one pattern which can be more
specific, and most probably it should be possible to block nick names in
the global server configuration as well.

Nick names introduced by other servers/services are never restricted.


No differences found