Kickban and mute

By Weasel on Jun 28, 2009

very simple say !mute time < same with ban!

on *:text:!mute*:#: {
 if ($4 == m) { mode # +b ~q: $+ $address($2,5) | timer 1 $calc($3 * 60) mode # -b ~q: $+ $address($2,5) | msg $2 you have been muted for $3 minutes }
 if ($4 == h) { mode # +b ~q: $+ $address($2,5) | timer 1 $calc($3 * 3600) mode # -b ~q: $+ $address($2,5) | msg $2 you have been banned for $3 hours 
 if ($4 == d) { mode # +b ~q: $+ $address($2,5) | timer 1 $calc($3 * 2595000) mode # -b ~q: $+ address($2,5) | msg $2 you have been banned for $3 days }
 if ($4 == year) { mode # +b ~q: $+ $address($2,5) | timer 1 $calc($3 * 31140000) mode # -b ~q: $+ $address($2,5) | msg $2 you have been banned for $3 years }
 if ($4 == s) { mode # +b ~q: $+ $address($2,5) | timer 1 $calc($3 * 1) mode # -b ~q: $+ $address($2,5) | msg $2 you have been banned for $3 seconds }
}
on *:text:!ban*:#: {
 if ($4 == m) { mode # +b $address($2,5) | kick $nick # you have been banned by $nick | timer 1 $calc($3 * 60) mode # -b $address($2,5) | msg $2 you have been banned for $3 minutes }
 if ($4 == h) { mode # +b $address($2,5) | kick $nick # you have been banned by $nick  | timer 1 $calc($3 * 3600) mode # -b $address($2,5) | msg $2 you have been banned for $3 hours }
 if ($4 == d) { mode # +b $address($2,5) | kick $nick # you have been banned by $nick  | timer 1 $calc($3 * 2595000) mode # -b $address($2,5) | msg $2 you have been banned for $3 days }
 if ($4 == year) { mode # +b $address($2,5) | kick $nick # you have been banned by $nick  | timer 1 $calc($3 * 31140000) mode # -b $address($2,5) | msg $2 you have been banned for $3 years }
 if ($4 == s) { mode # +b $address($2,5) | kick $nick # you have been banned by $nick  | timer 1 $calc($3 * 1) mode # -b $address($2,5) | msg $2 you have been banned for $3 years }

Comments

Sign in to comment.
PATX   -  Jun 30, 2009

:)

 Respond  
Cheiron   -  Jun 30, 2009

yes you would be talking on this one PATX.. /cs set #channel mlock +m (permanent lock) or simply /mode #channel +m
chanserv's moderation mode

 Respond  
PATX   -  Jun 30, 2009

i can mute. i put the mode where only voiced users can talk (OR send notices) then i voice everbody i want to talk. Note everbody is auto voiced in my chan. so all i have to do is unvoice then they cant talk. EASY.

 Respond  
Cheiron   -  Jun 30, 2009

thing is though with mute ... it is ONLY and i say ONLY channel messages.. it does NOT stop notices in channel from a muted users so it is impractible there

 Respond  
Weasel   -  Jun 30, 2009

Patx, hes right try mute banning wuth cs sry for the spelling from my ipod

 Respond  
PATX   -  Jun 29, 2009

ChanServ is better. I say that now, and I will say that until someone can prove me wrong with a practical test.

 Respond  
Cheiron   -  Jun 29, 2009

chanserv does not support extended type bans like ~q: , ~n: , ~c: etc , nor does it support timed bans PATX. extended bans are located on the server daemon itself and access via the /mode command

 Respond  
PATX   -  Jun 29, 2009

omg! another one of these ban bots! use chanserv!!!

 Respond  
Weasel   -  Jun 29, 2009

Well the calc is for more than 1 :)

 Respond  
Aucun50   -  Jun 29, 2009

Missing a end bracket.

 Respond  
Cheiron   -  Jun 29, 2009

it is all well setting timed bans .. but you need to consider your pc's connection. timed bans are maintained by mirc as chanserv does not have the ability. if you ping out, or have a connection reset by peer , or a power failure , windows reboot etc... that timed ban becomes fixed as it will not reset. i would say realistically for timed bans .. a max of 1 day. also for ease of use and more secure muting ... use mask 2 or 3 ... not 5. also you have no check there that user is halfop or higher.. as required for the command to run. i wont go any deeper at this point other than to query why using $calc for the timer... you can just use timer 1 3600 for example :) simpler, cleaner, shorter

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.