Skip to content
MSN Addons

scan on join

A TG007 community discussion started by samooh_2003.

Discussion 20 posts
Page 1 of 1
Open
Topic #3392 · 20 published posts · 1,794 views

dis code in da alias for scanning da kick list on join but it doesn't work so any one can help me in it or if he 've another one ... plz ?

 

scankicklist {
 var %i 1
 while (%i <= $nick($chan,0)) {
   if ($level($nick($chan,%i)) == kicklist) || ($level(*! $+ $$ial($nick($chan,%i) $+ *,1).addr) == kicklist) {
     /msg # Scanning for members in da kicklist.... | msg # $nick($chan,%i) found will be kicked now..
     sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address($nick($chan,%i),1) 
     kick $msn.get($cid,fullroom) $nick($chan,%i) Sorry u r on my kicklist..
   }    
   inc %i
 }
}

 

and dis in da remote...

 

on *:JOIN:*:{
scankicklist
}

sam , this all looks like other peoples code

 

My code does NOT have bugs. It just develops random features.

sure i got it from another one but it isn't working always but in some times

on kicklist:JOIN:#: {

if ($me isop $chan) { .raw kick $chan $nick Sorry u r on my kicklist.. | .raw access $chan add deny $ial($nick).addr }

 

thnx 4 u but i am meaning when my script join make scan on da userlist and kick ppl who on kick list not on the joining of the members.

try to replace $chan by $comchan($me,1) and use on *:join:*:{ if ($nick == $me) scankicklist } to dont let the bot scans when everyone joins.

 

To kick any kicklisted person use aurobbx code but to scan when you join, use the on *:join i just typed now

doesnot work man....

check the way of adding kicklists or paste it here please

I just tested it and worked for me

 

adding user using the nicklist popups: auser kicklist *! $+ $$ial($$1).addr

adding user using commands: auser kicklist *! $+ $$ial($2).addr

Edited Apr 23, 2005 2:48 AM by DreaM

on admin:TEXT:>kl*:#:/auser kicklist *! $+ $iif($ial($2 $+ *,1).addr != $null,$ifmatch) $2 | /access # add deny $address($2-,3) 5 | /.ctcpreply $nick TIME Thanks $nick ! (Y) I will kick that bastard now 8o| | /Kick # $2- \\kicklist//

 

doesnot work 2....

instead of:

on *:JOIN:*:{
scankicklist
}

 

use:

 

on *:JOIN:*:{
 if ($nick == $me) .timer.scankicklist 1 3 scankicklist
}
;increase 3 if you have many chatters because what happens that the bot try to scan the chatters before loading them so it can not get complete list of the chatters to scan.

 

or sure you can remove if ($nick == $me) if you want the bot to scan when anyone joins but I dont advise you because I am using timer and it will make the kick slow.

 

Edited Apr 23, 2005 3:11 AM by DreaM

okz thnx for helping i will try it tommorow and 'll tell u thnx again g2g now....

on *:join:#:{ scankicks }
alias scankicks {
 var %a = 1
 while (%a <= $nick($chan,0)) {
   if ($level(!* $+ $ial($nick($chan,%a))) == kicklist) || ($level($nick($chan,%a)) == kicklist) {
     msg $chan $nick($chan,%a) is on my kicklist and will be kicked.
     sockwrite -n msn.server. $+ $cid kick $chan $nick($chan,%a)
   }
 inc %a
}

To prevent flooding, try using a timer like DreaM said.

 

works here samooh

can u give me tha adding of it from da popups??

Do you mean this?

;remotes
menu channel {
 Scan kicklist { scankicklist }
}

;or popups
.Scan kicklist { scankicklist }

 

adding user using the nicklist popups: auser kicklist *! $+ $$ial($$1).addr

Seems that you don't read my posts samooh

nop i did but i wanna be sure cause it working on join of the member not on join of my script.. sure there is some thing wrong with ma script thnx for all