mIRC Home    About    Download    Register    News    Help

Print Thread
[RESOLVED] realname #179504 23/06/07 09:15 PM
Joined: Feb 2007
Posts: 28
F
Fill Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2007
Posts: 28
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?

Last edited by Fill; 23/06/07 10:11 PM.
Re: realname [Re: Fill] #179506 23/06/07 09:25 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
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.

Re: realname [Re: 5618] #179508 23/06/07 09:37 PM
Joined: Jul 2006
Posts: 3,702
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,702
The extend ban of unreal is a module, so IRCd can be unreal and ban like ~r|c|q can't be used.


Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net
Re: realname [Re: Fill] #179509 23/06/07 09:38 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
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

Re: realname [Re: Horstl] #179510 23/06/07 09:44 PM
Joined: Feb 2007
Posts: 28
F
Fill Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2007
Posts: 28
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?

Last edited by Fill; 23/06/07 10:02 PM.
Re: realname [Re: Fill] #179511 23/06/07 09:49 PM
Joined: May 2007
Posts: 89
T
TropNul Offline
Babel fish
Offline
Babel fish
T
Joined: May 2007
Posts: 89
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.



tropnul
Re: realname [Re: TropNul] #179513 23/06/07 10:11 PM
Joined: Feb 2007
Posts: 28
F
Fill Offline OP
Ameglian cow
OP Offline
Ameglian cow
F
Joined: Feb 2007
Posts: 28
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