ban protection

By fire_wizard1 on Jan 16, 2009

this is the second snippet that i successfully wrote. and yes i do have an afficiation on akick xD

on ban:#: {
  if ($banmask iswm $address($me,5)) {
    if $me == $bnick
    cs unban $me
    cs invite $chan $me
    timer 1 2 /cs ban $nick $address
    cs akick $nick $address 
    msg $chan thats one less fucktard in the room
  }
}

Comments

Sign in to comment.
Spoof   -  Dec 31, 2011

what happened to using
on 5:BAN:#:{
plus your script lacks a closing bracket on line 10

 Respond  
PuNkTuReD   -  Jan 29, 2009
timer 2 1

your activating your timer 2 times at 1 second intervals

try

timer 1 2

activate once , in 2 seconds time

 Respond  
fire_wizard1   -  Jan 29, 2009

i changed the snippet, as in the timer and took off the full on $address, so it should work better. comment if it does not look right

 Respond  
fire_wizard1   -  Jan 20, 2009

well i am still a newb to all this, so im still bound to have bugs in my snippets

 Respond  
napalm`   -  Jan 18, 2009

lol @ you

 Respond  
fire_wizard1   -  Jan 18, 2009

o_O how is this epic, unless you are being sarcastic napalm`, i mean this is a half bad job.

 Respond  
napalm`   -  Jan 17, 2009

This is epic.

 Respond  
MoeEpsilon   -  Jan 16, 2009
.. >_>
 Respond  
fire_wizard1   -  Jan 16, 2009

oh well, the longer ones work as well as the shorter ones
/me goes back to talking on his server once again

 Respond  
Aucun50   -  Jan 16, 2009

Yes yes forgot that one to.

/me needs to look over my own posts

 Respond  
fire_wizard1   -  Jan 16, 2009

hmmmm that is a bit shorter then how i wrote it, thanks for the input napa182

 Respond  
napa182   -  Jan 16, 2009

hmm

on *:ban:#:{
  if ($nick != $me && $banmask iswm $address($me,5)) {
    .cs unban $me
    .cs invite $chan $me
    .timer.ban2 1 2 .cs akick # add $address($nick,2) are you that stupid or do you work at being stupid
  }
}
 Respond  
fire_wizard1   -  Jan 16, 2009

lol thats what someone said on the server i talk on the most, he said the more you script the better you get, but oh well, the snippets both work /me goes back to talking on queercommons

 Respond  
Aucun50   -  Jan 16, 2009

Tip: Slow down when scripting it's not a race, look at what you have and if your missing anything before you post like end brackets. I like that your trying tho, you can only get better from practice.

 Respond  
Aucun50   -  Jan 16, 2009

Again no brackets?

on *:ban:#:
if ($me == $bnick) {
/cs unban $me
/cs invite $chan $me
if ($banmask iswm $address($me,5)) {
.timer 3 1 /cs ban $nick $full address
/cs akick $nick $fulladdress
/msg $nick are you that stupid or do you work at being stupid
  }
}
 Respond  
fire_wizard1   -  Jan 16, 2009

O_o wait i added that in the wrong place o_O

 Respond  
napa182   -  Jan 16, 2009

so you just toss things in anywhere lol

 Respond  
fire_wizard1   -  Jan 16, 2009

well when i tested the snippet on chat.peercommons.net it did work, but the akick and the ban did not, so i added a timer on it, but thanks i will modify it right now

 Respond  
napa182   -  Jan 16, 2009

well $bnick will only work if the banmask includes a nickname.
you are better off useing

if ($banmask iswm $address($me,5)) {

like i said on ur other code please test them before you post them.

 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.