dubstar Posted October 8, 2018 Posted October 8, 2018 (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 October 8, 2018 by dubstar
ehh Posted October 8, 2018 Posted October 8, 2018 you should just force suspects to play on their usual name if they refuse send them to the gulag, create the dictatorship renegade needs
shaitan Posted October 8, 2018 Posted October 8, 2018 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. 1
dubstar Posted November 18, 2018 Author Posted November 18, 2018 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 } }
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now