Skip to content
MSN

De-owner help

A TG007 community discussion started by D3xter.

Discussion 7 posts
Page 1 of 1
Open
Topic #2759 · 7 published posts · 753 views

hi all

 

i need to help for code me code kick to user bat no ban to user please help me...

 

    if ($gettok(%read,4-5,32) == -q $mid($mnick,1,58)) && ($remove($gettok($gettok(%read,1,32),1,33),:) != $mid($mnick,1,58)) && (%deowner == on) {
     hop 
     sockwrite -tn $sockname kick $gettok(%read,3,32) $remove($gettok($gettok(%read,1,32),1,33),:) System.Failure $lf access $gettok(%read,3,32) clear owner $lf access $gettok(%read,3,32) add owner $mid($mnick,1,58)) $lf access $gettok(%read,3,32) add voice $mid($mnick,1,58))
     set %-qflood on
     timer -m 1 500 set %-qflood off
     sockwrite -tn %x $gettok(%read,1-,32) 
   }

That one you posted wouldn't ban. There are no denies in the coding

 

If your going to be using "hop" in sockread never use hop...

 

use this.. sockwrite -n $sockname PART $right($4,-1) $lf JOIN $right($4,-1)

 

This code is for Groups and this code need to hop

I'm a believer in simple scripts, i dont know why people make things so complicated that they cant possibly understand it.

 

on *:DEOWNER:#: {
 if ($opnick == $me) && ($nick != $me) {
   hop
   raw access # clear
   raw access # add deny $nick 
   kick # $nick Now that was not nice....
   raw access # ADD OWNER $address($me,1) 0
  }
}

i'll try and explain why they use complex methods...

 

Consider this situation, the person who deownered you is using a sockread take, under normal conditions....you just lost your room. that "simple" script would be rather slow....the reason for the complexity is "speed".

also you might wanna change

 

raw access # add deny $nick

 

to

 

raw access # add deny *! $+ $ial($nick $+ *,1).addr

 

but that is just my opinion

 

Edited Feb 18, 2005 2:33 AM by Iceheart22

best protection against owner take

 

if ($nick asksfor owner) kick $chan $nick sod off

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