Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1]   Go Down

Author Topic: Set modes on connect  (Read 6817 times)

0 Members and 1 Guest are viewing this topic.

n0kS Phr33d0m

  • Contributor
  • *
  • Offline Offline
  • Posts: 25
Set modes on connect
« 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 ....
« Last Edit: November 03, 2008, 12:35:34 PM by n0kS »
Logged

Dave Robson

  • Team
  • *
  • Offline Offline
  • Posts: 357
Re: Set modes on connect
« Reply #1 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
Logged

n0kS Phr33d0m

  • Contributor
  • *
  • Offline Offline
  • Posts: 25
Re: Set modes on connect
« Reply #2 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
Logged

Jobe

  • Contributor
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 1023
    • Anope IRC Services
Re: Set modes on connect
« Reply #3 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.
Logged
Your IP: ()
My IRC Status:

Come along and visit http://www.anopequotes.org/

n0kS Phr33d0m

  • Contributor
  • *
  • Offline Offline
  • Posts: 25
Re: Set modes on connect
« Reply #4 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
Logged

Charles Kingsley

  • Contributor
  • *
  • Offline Offline
  • Posts: 1405
Re: Set modes on connect
« Reply #5 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...
Logged

katsklaw

  • Guest
Re: Set modes on connect
« Reply #6 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.
« Last Edit: November 04, 2008, 08:19:47 PM by katsklaw »
Logged
Pages: [1]   Go Up