Ban & Unban

By rsb on Aug 23, 2008

Deleted br0

DELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETEDDELETED

Comments

Sign in to comment.
huh?   -  Mar 12, 2009

oh it seems like there's nothing i can do to unban my address on that channel coz' i'm not a op on that channel, im just a chatter. :(
well tnx anyway.

 Respond  
Zmodem   -  Mar 08, 2009

You cannot get unbanned from a channel you have been banned from, unless it is your channel or you are some sort of administrator on that channel. In the case that you are an administrator, /chanserv unban #ChannelName me.

 Respond  
huh?   -  Mar 08, 2009

hi, I need help, they ban my address on my favorite channel on DALnet I don't know why so now I can't join the channel please help me, can you give me a code to unban my address. And one thing that I really don't know is to where should I type or paste the code should I type it on the scripts editor? I really don't know where please I need help.

 Respond  
Zmodem   -  Aug 24, 2008

I would just like to point out that the parser will run your if-then-else statements much quicker if you group your comparisons with more brackets, ie:

if ((this) || (that)) { DO }

is quicker than:

if (this || that) { DO }

You don't need your 'halt' statements. In fact, since you are '/whoising' people, you may want to use 'haltdef' to halt the response the IRC server gives you, since you don't want your window flooded every time you '/whois' for a mask.

Here is an 'example' rework that you may use if you want:

on *:Text:!unban *:#:{
  if (($nick isop $chan) || ($nick ishop $chan)) { .enable #banunban | who $2 | set %ban_var $chan -b $2 }
  else { .notice $nick Sorry, you need to be at least halfop to use this command. }
}
on *:Text:!ban *:#:{
  if (($nick ishop $chan || $nick isop $chan)) { .enable #banunban | who $2 | set %ban_var $chan +b $2 }
  else { .notice $nick Sorry, you need to be at least halfop to use this command. }
}

#banunban off
raw 315:*:.disable #banunban | .mode $gettok(%ban_var,1,32) $gettok(%ban_var,2,32) $address($gettok(%ban_var,3,32),2) | haltdef
raw 352:*:haltdef
#banunban end
 Respond  
rhasttaff   -  Aug 23, 2008

yeah now i see you've updated.

the problem was that unset variables.
now looks nice

nice code :)

 Respond  
rhasttaff   -  Aug 23, 2008

i try. but dont know why, dont works with me

(:13:35:54) (@rhasttaff) !ban Testers
Testers on %#rasta #rhasttaff
Testers using light.MindForge.org MindForge
Testers End of /WHOIS list.
+b No such nick/channel

;#####

(:13:43:38) (@rhasttaff) !unban Testers
Testers is vIRCiado@mf-30D8F512.bnut3702.dsl.brasiltelecom.net.br * vIRCiado
Testers on %#rasta #rhasttaff
Testers using light.MindForge.org MindForge
Testers End of /WHOIS list.
-b No such nick/channel

 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.