Skip to content
MSN

ctcp kick

A TG007 community discussion started by redrider.

Closed discussion 9 posts
Page 1 of 1
Closed
Topic #2040 · 9 published posts · 685 views

k guys maybe someone can help me it would be muchly appreciated plzzzzz.This is ozzy's ctcp checker i got from here but the problem is it kiks owners that has a ping speck kicker maybe someone could explain and show me how to get it to stop kicking owners when i join my rooms.this is the code

 

ctcp *:*:*: {

if ($nick isowner $active) halt

if ($nick isop $active) halt

if (*TIME* iswm $1-) { goto timekick }

elseif (*FINGER* iswm $1-) { goto timekick }

elseif (*PING* iswm $1-) { goto timekick }

elseif (*VERSION* iswm $1-) { goto timekick }

elseif (*ISITVINCULA* iswm $1-) { goto timekick }

halt

:timekick {

.sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address 15 :C.T.C.P $1- check $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $time

.sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Kenobi C.T.C.P $1- check Ban(Access ban set for 15 minutes)

}

}

on *:CTCPREPLY:â€DTäE: {

if ($nick isowner $active) halt

if ($nick isop $chan) halt

.sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address 15 :Domi check $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $time

.sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Domi check Ban(Access ban set for 15 minutes)

}

 

 

now wher eit says if ($nick isowner $active) halt i tried changeing it to if ($nick isowner $chan) halt but it seems to still kick them to any tips would be gr8 thanx again

CTCP *:*:*: {
 if ($nick isowner $active) halt
 if ($nick isop $active) halt
 if (*TIME* iswm $1-) { goto timekick } 
 elseif (*FINGER* iswm $1-) { goto timekick }
 elseif (*PING* iswm $1-) { goto timekick } 
 elseif (*VERSION* iswm $1-) { goto timekick }
 elseif (*ISITVINCULA* iswm $1-) { goto timekick }
 halt
 :timekick
 .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address 15 :C.T.C.P $1- check $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $time
 .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Kenobi C.T.C.P $1- check Ban(Access ban set for 15 minutes)
}

on *:CTCPREPLY:â€DTäE: {
 if ($nick isowner $active) halt
 if ($nick isop $chan) halt
   .sockwrite -tn msn.server. $+ $cid access $msn.get($cid,fullroom) add deny $address 15 :Domi check $replace($nick,>,Guest_) added by $replace($me,>,Guest_) at $date @ $time
   .sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Domi check Ban(Access ban set for 15 minutes)
}

 

That might work, not sure.. Just a guess though.

 

And may I ask why you have a kenobi kick msg?

 

.sockwrite -tn msn.server. $+ $cid kick $msn.get($cid,fullroom) $nick : $+ Kenobi C.T.C.P $1- check Ban(Access ban set for 15 minutes)

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

Well josh if u would of noticed as i stated in the first posting "k guys maybe someone can help me it would be muchly appreciated plzzzzz.This is ozzy's ctcp checker i got from here " it says kenobie in it casue it came from this site which ozzy was so kind as to post it in addon section and kenobie being ozzys creation it would make persfect scence as to why i have that kick message in it. woot_jump.gif

lmao.. ooops.. Sorry about that tongue.gif :$ I read backwards (As in start at the end of the paragraph and find the problem with the code.. I basically just read this:

 

it kiks owners that has a ping speck kicker maybe someone could explain and show me how to get it to stop kicking owners when i join my rooms.this is the code

err0r: 666 + 1337 = 2003 backwards is 3002 which is how many people ozzy has banned from tg
err0r: spooky

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

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

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

for ozzy's recommendation, it would be better to do $comchan($nick,1) because they may not be in the first channel your in, so this is alittle more accurate.

k thanx for ur help 0zzy and gatekeeper it seems to halt on owners so works gr8.And josh np man was no biggie

Erase all this:

 

ctcp *:*:*: {
if ($nick isowner $active) { halt }
if ($nick isop $active) { halt }
if (*TIME* iswm $1-) { goto timekick }
elseif (*FINGER* iswm $1-) { goto timekick }
elseif (*PING* iswm $1-) { goto timekick }
elseif (*VERSION* iswm $1-) { goto timekick }
elseif (*ISITVINCULA* iswm $1-) { goto timekick }
halt
}

 

And REPLACE with that:

 

ctcp *:*:*: {
 .ignore -tu60 $nick 
;or .ignore -tu60 $address
 halt
}

 

Simple & Easy wink.gif

 

offtopic.gif

Edited Dec 3, 2004 7:18 PM by OZZY_10â„¢

krot, you might want to check the posts first, he said he wanted the kick fixing

its ok ignoring the ctcps , but sometimes its a flood to all the room and ignoring it , wouldnt help the rest of the people in the room

also the code is used as part of a script checker , which ignoring the ctcp defeats the whole object of the coding.

 

Anyway he has it working

 

 

topic closed

Edited Dec 3, 2004 7:18 PM by OZZY_10â„¢

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