Jump to content
Sign in to follow this  
dubstar

need help with script

Recommended Posts

Posted (edited)

I need help with the code below. what I want to accomplish is having myself pm'd (in irc not game) when a monitored player joins from either ip, hostname or serial.

each line in the script need to be treated as seperate instances as sometimes I monitor by ip, other times by host and sometimes by serial.

on *:text:*hostname.com*:#channel:/msg $me someone connected from monitored host
on *:text:*127.0.0.1*:#channel:/msg $me someone connected from monitored ip
on *:text:*0000000000000000*:#channel:/msg $me someone connected from monitored serial

the code above works and pm's me but I get flooded with pm's when anyone uses mod commands (i,e !check player) and this is what I don't want, I just want it to pm me on connection to the server.

 

any help will be much appreciated.

I only monitor suspects.

pm if any mod related codes are used.

 

Edited by dubstar

Share this post


Link to post
Share on other sites

you should just force suspects to play on their usual name

if they refuse send them to the gulag, create the dictatorship renegade needs

Share this post


Link to post
Share on other sites

You mock, but I've tried to get people to stick with known nicks("stick with it or I'll make a script force you"). Otherwise you all scream to the heavens about new hackers. o.O

 

If you're on when I get home tonight, page me Furi. Or, see if Manuel/Mass can send you a copy of RCBOT's IPban.mrc script.

Share this post


Link to post
Share on other sites

This got sorted a while ago with the help of shai and am posting result incase anyone else wants to do similar coding

 

on *:text:*:#channel:{
if (($1 == Name:) && ($3 == IP:) && ($5 == FDSID:) && ($7 == Host:)) {
if ($right($4,11) == 00.00.00.00) /msg $me $2 $4 monitored ip has joined the server  
if ($right($8,8) == host.com) /msg $me $2 $4 monitored host has joined the server
if ($left($2,6) == player) /msg $me $2 $4 monitored name has joined the server
}
}

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×