Anope Development > Modules

Module Request

(1/4) > >>

Alex22:
Hi,

Just moved our webchat network over to Anope.

I was wondering if someone with module-writing experience could write this, what I think is, simple'ish module for us?

We should have a string of banned words in nicknames in the .conf
--- Code: ---BannedWords "Word1 Word2 Word3 ..."
--- End code ---

If a user joins any channel with with a nickname that contains a BannedWord then they should be kicked and a ban set in format
--- Code: ---nickname!*@*
--- End code ---

AKICK is not an option here, we need the ban to be
--- Code: ---nickname!*@*
--- End code ---
not
--- Code: ---*bannedword*!*@*
--- End code ---
so every users sees the reason in kick.

We have 6,000~ webchat users at any point.

Thanks,

katsklaw:
Disallowing nicknames is the job of the ircd, not services. Something like this: https://www.unrealircd.org/files/docs/unreal32docs.html#bannickblock or https://wiki.inspircd.org/Configuration#.3Cbadnick.3E

If an user attempts to change their nick to a wild carded match to the banned nick, it fails. Channel bans/akicks will be a moot point since the usage of the bad nick is impossible.

Alex22:
Want services to do it so webchat sees a real kick and ban.

Thanks

katsklaw:

--- Quote from: Alex22 on November 23, 2014, 04:45:55 PM ---Want services to do it so webchat sees a real kick and ban.

Thanks

--- End quote ---

That's not necessary.  Because, again, if the ircd controls the bad nick list, no bad nicks will ever exist in the first place so there is nothing to kick/ban.

The IRCd keeps track of both the real and fake host, so if you ban the fake host, the real one is banned too. For security reasons, users and Channel Ops are not shown the real host.

What you are asking for will open a huge security hole. If ChanOps are granted access to real hosts then all one has to do is creat a new channel and start /whois'ing people to get their real IP. This effectively renders host manging totally useless.

Alex22:
... What?

Navigation

[0] Message Index

[#] Next page

Go to full version