Get (Anope)Vhost instead of the real host as ircop
Posted: Wed Jul 20, 2005 5:22 am
Hi,
I got a little Problem: Some IRC clients use USERHOST before a ban to get the hostname they have to ban. This works well in usermode as they get for example "[email protected]" and ban "hidden.host" (the vhost of the user, set by anope for example). But as an ircop, you see "real.host.t-dialin.net" for example, or, if they use a bnc running on the irc server itself "localhost". You can imagine what happens if you ban "localhost" - all other bnc users can't join anymore.
So: Is there a command or a flag for USERHOST which returns the hostmask as the user would see them or is there another method which is suitable for that?
Thanks & cu
I got a little Problem: Some IRC clients use USERHOST before a ban to get the hostname they have to ban. This works well in usermode as they get for example "[email protected]" and ban "hidden.host" (the vhost of the user, set by anope for example). But as an ircop, you see "real.host.t-dialin.net" for example, or, if they use a bnc running on the irc server itself "localhost". You can imagine what happens if you ban "localhost" - all other bnc users can't join anymore.
So: Is there a command or a flag for USERHOST which returns the hostmask as the user would see them or is there another method which is suitable for that?
Thanks & cu