mIRC Home    About    Download    Register    News    Help

Print Thread
#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.
Fill #179506 23/06/07 09:25 PM
Joined: Jun 2007
Posts: 933
5
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.

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


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
Fill #179509 23/06/07 09:38 PM
Joined: Nov 2006
Posts: 1,559
H
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

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.
Fill #179511 23/06/07 09:49 PM
Joined: May 2007
Posts: 89
T
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
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


Link Copied to Clipboard