Anope IRC Services

Anope Development => Feature Requests => Topic started by: n0kS Phr33d0m on November 03, 2008, 12:33:46 PM

Title: Set modes on connect
Post by: n0kS Phr33d0m on November 03, 2008, 12:33:46 PM
Hello. I know here's not the right place to ask this but I'll try...

Could you make a module that if some user connects via ipv6  to remove him the -x mode (Unreal mode for hiding hosts and ips).
Because I want when normal users connect, to have their IPs and hosts hidden...
and when users connect through my ipv6 server (with their ipv6 vhosts) not to have the hiddenhost-prefix...

Example:
With +x
[13:30:28] --> n0kS (n0kS@ExtremeBG-User-DA8C1F80.m355.w17h.my.phr33d0m.co.cc) has joined

With -x
[13:31:15] --> n0kS (n0kS@d0n7.m355.w17h.My.Phr33d0m.co.cc) has joined

I'm now telling my users to type themselves /mode nick -x ... but this isn't very professional...

I'm asking this because a friend has the same problem (I'm not the only one... ;P)
So the module checks if the users has ipv6 IP/Host and sets /mode NICK -x
This job can do it OperServ or Global... it's not important...

Thanks in advance.



edit: And if users connect on port 6668 or 7000 for example (normal ports - non-SSL/IPv6), to put them different modes like +q or +B ....
Title: Re: Set modes on connect
Post by: Dave Robson on November 03, 2008, 01:59:10 PM
(from memory) Anope doesn't really know if the user is using ipv4 or ipv6.

I'm going to assume its unreal, but the comments in general apply regardless.  The umode +x is set by the ircd, in unreals case the cloaking module.  If you don't want the hidden bits, wouldn't it be easier to use a cloaking module that doesn't do this?

Just some first thoughts...

Rob
Title: Re: Set modes on connect
Post by: n0kS Phr33d0m on November 03, 2008, 03:36:44 PM
I like unreal's hiding mode but only for normal users... I don't want ipv6 users to get this mode...
this was my point of view
Title: Re: Set modes on connect
Post by: Jobe on November 03, 2008, 05:02:52 PM
Well, if you IPv6 IRCd doesnt accept IPv4 connections you could simply take x out of the auto-modes setting in your IRCd config.

Else, I'd suggest seperating IPv4 and IPv6 connections to diff servers so you can do that.
Title: Re: Set modes on connect
Post by: n0kS Phr33d0m on November 03, 2008, 11:14:46 PM
Well, if you IPv6 IRCd doesnt accept IPv4 connections you could simply take x out of the auto-modes setting in your IRCd config.

Else, I'd suggest seperating IPv4 and IPv6 connections to diff servers so you can do that.

1st part: you didn't understand me
2nd part: thanks for the propose... I'll have it in mind
Title: Re: Set modes on connect
Post by: Charles Kingsley on November 04, 2008, 07:11:17 AM
If Jobe didn't understand you, perhaps you should elaborate as I read into it the same way as he did...
Title: Re: Set modes on connect
Post by: katsklaw on November 04, 2008, 08:12:17 PM
If Jobe didn't understand you, perhaps you should elaborate as I read into it the same way as he did...

I second this. Additionally, this much more an ircd issue than Anope. Actually completely an ircd in my opinion as it can be completely handled when the user connects, which is long before Anope even knows the user exists.