Skip to content
MSN

Whisper Kick

A TG007 community discussion started by MucH.

Discussion 16 posts
Page 1 of 1
Open
Topic #467 · 16 published posts · 890 views

on *:text:*:?: { 
 if ($nick isop $chan) halt
 if ($nick isowner $chan) halt
 elseif ($nick !isop $chan)  { goto kick }
 halt
 :kick {
   .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Whisper^o)Kick  $read kicks.txt
 } 
}

Any help is greatly appreciated blink.gif

Edited May 8, 2004 11:39 PM by MucH

5 Views dry.gif

No Replies sad.gif

[script]

n0=raw whisper:*:/kick $1 $nick Do not Whisper Me, Please!

on *:text:*:?: { 
if ($nick isop $active) halt
if ($nick isowner $active) halt
  .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Whisper^o)Kick  $read kicks.txt
} 

or 

on *:text:*:?: { 
if ($nick isop $msn.get($cid,fullroom)) halt
if ($nick isowner $msn.get($cid,fullroom)) halt
  .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Whisper^o)Kick  $read kicks.txt
}

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

ozzy's modifications would work, but i would not use $active, i would use $comchan($nick,1) its more effective then $active.

Xtreme I wanted it to halt for ops blink.gif

Thanx Ozzy for your reply. I'll try that. biggrin.gif

 

Much smacks The Gate Keeper around a bit with a large trout.

Keep up the good work cool.gif

<.oÖ¶mÿsterÿÖ¶o> I will close this

oÖ¶mÿsterÿÖ¶o was kicked by X-Cessive-Force (Whisper^o)Kick - I've had many cases of love that were just infatuation, but this hate I feel for you is definately the real thing.)

Nope that one didnt work Ozzy dry.gif

on *:text:*:?: { 
 if ($nick isop $msn.get($cid,fullroom)) halt
 if ($nick isowner $msn.get($cid,fullroom)) halt
 .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Whisper^o)Kick  $read kicks.txt
}

on *:text:*:?: {

if ($nick isop $comchan($me,1)) halt

if ($nick isowner $comchan($me,1)) halt

.sockwrite -tn msn.server. $+ $cid kick $comchan($me,1) $nick : $+ Whisper Kick  $read kicks.txt

}

Edited May 9, 2004 3:23 PM by ozzy

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

on *:text:*:?: { 
 if ($nick isop $comchan($me,1)) halt
 if ($nick isowner h $comchan($me,1)) halt
 .sockwrite -tn msn.server. $+ $cid kick $comchan($me,1) $nick : $+ Whisper Kick  $read kicks.txt
} 

Works so far cool.gif

Thanx again Ozzy

there was a mistake in coding , use this

 

 

on *:text:*:?: {

if ($nick isop $comchan($me,1)) halt

if ($nick isowner $comchan($me,1)) halt

.sockwrite -tn msn.server. $+ $cid kick $comchan($me,1) $nick : $+ Whisper Kick  $read kicks.txt

}

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

ohmy.gifI see the h now rolleyes.gif

cool.gif Back to the drawing board

dry.gif doesn't kick anyone at all

sad.gif Not even participants

Edited May 9, 2004 10:00 PM by MucH

on *:text:*:?: { 
if ($nick isop $comchan($nick,1)) { return }
if ($nick isowner $comchan($nick,1)) { return }
else { .sockwrite -tn msn.server. $+ $cid kick $comchan($nick,1) $nick : Whisper Kick  $read kicks.txt }
} 

 

if this doesn't work just replace $comchan($nick,1) with $comchan($me,1) and it should work. otherwise just remove the bit after whisper kick [  $read kicks.txt ].

on *:text:*:?: { 
 if ($nick !isop $comchan($nick,1)) && ($nick !isowner $comchan($nick,1))) { 
   kick $comchan($nick,1) $nick : Whisper Kick  $read kicks.txt
 }
}

Edited May 10, 2004 3:35 PM by Pete®tje

It must be something you have in ya script or are adding to the code , cause i have tried a few of the ways and they all work lol

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

on *:text:*:?:{
 var %i = 1, %chan
 while $comchan($nick,%i) {
   %chan = $ifmatch
   if $nick !isop %chan && $nick !isowner %chan && $me !isreg %chan { kick %chan $nick no whispers please }
   inc %i
 }
}