[DONE] Automatic vhost based on raw nick format/IP

Need a module converted from 3.2.x to UnrealIRCd 4? Or looking for a certain module? Ask here.

Moderators: Gottem, Supporters

Post Reply
Posts: 179
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

[DONE] Automatic vhost based on raw nick format/IP

Post by Gottem » Fri Dec 30, 2016 11:41 pm

I don't remember who, but I saw someone mentioning it on IRC. They were looking for a way to automatically apply user vhosts based on hostmask entries in the config. The module looks for both nick!ident@host matches as well as IP.

Add a config block that looks like this:

Code: Select all

autovhost {
	*!*@some.host big.heks;
	192.168.* premium.lan;
So for example, anyone who connects from a LAN will get the vhost "premium.lan". The mod only touches the "cloakedhost" and "virthost" pointers, so session limits shouldn't be an issue. Get it from our git.
If you like my modules, pls consider donating (through PayPal) or becoming a monthly Patron ;];]

Post Reply