mIRC Home    About    Download    Register    News    Help

Print Thread
#146693 07/04/06 12:50 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
Ok, I have this auto ghoster script that I want to run across 3 networks. When it finds a nick of mine that is NOT me, kill it. Now, I have it done for ONE network but the problem Im having is:

Server 1 - nicknames 1 - 3
Server 2 - nicknames 1 and 4
Server 3 - nicknames 4 and 5

As you can see, some of the nicks are on more that one network. How can I do:

if ($nick ison specific server) { do stuff }

while running thru different servers? I (thru another post) got help on running thru the different servers, but since the notify list is global only, is there a way to separate it for different servers yet? If not, I can muck with things and deal with it for now


Those who fail history are doomed to repeat it
#146694 07/04/06 02:56 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
on *:NOTIFY: {
var %killnicks = $eval($+(%,killnick.,$network),2)
if ($istok(%killnicks,$nick,32)) .msg NickServ ghost $nick <pass>
}

#146695 07/04/06 05:43 AM
Joined: Dec 2002
Posts: 1,541
L
Hoopy frood
OP Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,541
the problem is, it seems the notify list will trigger if it sees it from another network.... like say this example:


Im on Network1 with nick1. I update the notify list (with the /notify command) and NIck2 on network2 is there. From what I saw, nick1 would see nick2 because it's on the LIST but not on the NETWORK. Does that make sence?


Those who fail history are doomed to repeat it
#146696 07/04/06 07:08 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
The notify list will only respond to the nicks that are in the notify list and on your currently active network.

So, using your example, Nick1 would only see nick2 if nick2 was on the same network as nick1, although the same person or someone else might be using nick2 on network2 at the same time

To check all of the networks that you're connected to for matches with the notify list, you might try
Code:
 alias notify2 {
scon -at1 /notify
}
 


Using /notify2 should issue the /notfiy command to all networks that you have an active connection to. NOTE: You may get false responses due to the reasoning I gave earlier.

#146697 07/04/06 11:38 AM
Joined: Feb 2005
Posts: 681
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Feb 2005
Posts: 681
Quote:
the problem is, it seems the notify list will trigger if it sees it from another network


Well yes of course all networks will see all nicks because
we don't have a multi-network notify list, but that's why you
set an identifier for each network...

/set %killnick.network1 nick1 nick2 nick3
/set %killnick.network2 nick1 nick4
/set %killnick.network3 nick4 nick5

Change these to the actual network names of course.


Then in the NOTIFY event, you'll check the killnick variable for
that network and if the nick is added to the variable for that
network you ghost the nick on that network...

Code:
on *:NOTIFY: {
  var %killnicks = $eval($+(%,killnick.,$network),2)
  if (($istok(%killnicks,$nick,32)) &amp;&amp; ($nick != $me)) .msg NickServ ghost $nick &lt;pass&gt;
}


Link Copied to Clipboard