mIRC Homepage

[RESOLVED] realname

Posted By: Fill

[RESOLVED] realname - 23/06/07 09:15 PM

I'm trying to ban from my chan those who use a certain Name on their script

Like

╗╗╗╗ /whois list for: źnick╗
╗╗╗╗ address: blahblah@yournetwork
╗╗╗╗ name: Lord
╗╗╗╗ services: registered
╗╗╗╗ channels: ...
╗╗╗╗ server: ...
╗╗╗╗ end of /whois list for: źnick╗

So, in this case, imagine I wanted to auto ban everyone using the name "Lord" in the real name field. How do I do that remote?
It would be something like

On *:JOIN:#ChannelName: {
if (realname == name) {
ban -k etc....
}

Any suggestions?
Posted By: 5618

Re: realname - 23/06/07 09:25 PM

If the network you're on uses Unreal as IRCd (/version) you can ban people pre-emptively by realname with +b ~r:realname_here (see unreal ban types).
You cannot actively check someone's realname upon them joining the channel unless you /whois every person on-join.
Posted By: Wims

Re: realname - 23/06/07 09:37 PM

The extend ban of unreal is a module, so IRCd can be unreal and ban like ~r|c|q can't be used.
Posted By: Horstl

Re: realname - 23/06/07 09:38 PM

Mirc's internal address list (ial) is not storing realnames, nor gives the on join event that information.

You'd have to whois everyone joining, check the rawlines of your whois reply, and compare the right one it to a list of blacklisted realnames.

e.g. (on unreal, the raw line 311 (whois reply) contains the realname as 6th space-delimited token onwards)
Code:
raw 311:*: {
  if ($istok(Lord.Stupid Dude.Troll.<more realnames here...>,$6-,46)) { mode  <#thechan> +b <banmaskhere> }
}

Note, this line of whois reply does not deliver the channelname in itself.
On unreal ircd, you could set bans directly on realnames, check http://www.vulnscan.org/UnrealIRCd/unreal32docs.html#feature_bantypes
Posted By: Fill

Re: realname - 23/06/07 09:44 PM

Yes, but isn't there any command that retrieves the realname?

If i want to set a variable with the realname of the last user that joined the chan, how would i do it?
Posted By: TropNul

Re: realname - 23/06/07 09:49 PM

instead of whoising the nickname, you may just make a /who nickname

this command will return in the raw 352 the realname.

here's an example:

23:44:13 -> irc.voila.fr WHO nickname
23:44:13 <- :irc.voila.fr 352 TropNul * theident thehost hisnetwork nickname H :0 THEREALNAME
23:44:13 <- :irc.voila.fr 315 TropNul nickname :End of /WHO list.

Posted By: Fill

Re: realname - 23/06/07 10:11 PM

Originally Posted By: TropNul
instead of whoising the nickname, you may just make a /who nickname

this command will return in the raw 352 the realname.

here's an example:

23:44:13 -> irc.voila.fr WHO nickname
23:44:13 <- :irc.voila.fr 352 TropNul * theident thehost hisnetwork nickname H :0 THEREALNAME
23:44:13 <- :irc.voila.fr 315 TropNul nickname :End of /WHO list.



THAT really helped!!! RESOLVED! thanks a lottttttttttttttt
© 2020 mIRC Discussion Forums