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

These are old archives. They are kept for historic purposes only.

Moderators: Gottem, Supporters

Post Reply
Gottem
UnrealIRCd coder
Posts: 192
Joined: Fri Aug 19, 2016 5:26 pm
Location: NL

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

Post by Gottem »

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 (credit card or iDEAL, use the custom job fee option in my shop) ;];]
Post Reply