I DELETED THIS CODING, cause I was toying with it somemore and if you messed with the -v (moved it or deleted it) it wrecks the room with modes. I had +mnutliwWk and a few others the status window said ?? is an unknown something.
A TG007 community discussion started by lostboyjoey.
I DELETED THIS CODING, cause I was toying with it somemore and if you messed with the -v (moved it or deleted it) it wrecks the room with modes. I had +mnutliwWk and a few others the status window said ?? is an unknown something.
Voice Code:
on admin:TEXT:!voice*:#: {
 var %n , %i , %l = 1 | while ($nick($chan,%l)) {
  %n = $ifmatch
  if ($2 isin %n) %i = $addtok(%i,%n,32)
  inc %l
 }
 if ($numtok(%i,32) > 0) mode $chan $str(+v,$v1) %i
 else msg $chan Sorry $nick $+ , no users have been found matching that phrase in their nickname
}
Spec Code:
on admin:TEXT:!spec*:#: {
 var %n , %i , %l = 1 | while ($nick($chan,%l)) {
  %n = $ifmatch
  if ($2 isin %n) %i = $addtok(%i,%n,32)
  inc %l
 }
 if ($numtok(%i,32) > 0) mode $chan $str(-v,$v1) %i
 else msg $chan Sorry $nick $+ , no users have been found matching that phrase in their nickname
}
Hope this does what your asking.
Here's an alternative:
on admin:text:!spec*:#:{
var %a = $ial(* $+ $2 $+ *,0).nick, %b = 1
if (%a == 0) { msg # There are no nicknames matching your parameters | halt }
while (%a >= %b) { mode # -v $ial(* $+ $2 $+ *,%b).nick | inc %b }
}
TGK your spec code does not work with this error:
* Too few parameters: $matchtok (line 19, TEST.mrc)
Clerix you code works. Ty both for helping.
i dont understand this hehe
Gate I think it might be me cause I cant get it to work and I know more often then not your coding works.
Clerix good coding but holy crap if ya mess up putting a nic in like I got smartass and tried !spec all it went ballistic specing peeps on and off even the bot.
I got smartass and tried !spec all it went ballistic specing peeps on and off even the bot.
Serves you right for being a smartass
Maybe I should've put a warning underneath it saying not moron-proof?
I take being called a moron a compliment, I have been called far worse. Its just when I get a new piece of coding I do everything insanely possible to try and mess it up. Just short of toying with the coding itself. I like to find bugs before someone else does and exploits them against me. Crap ask anyone that has EVER helped me...prolly tell ya I am a pain in the ass with "UT OH guess what I found". I am sorry if I offended ya in anyway, but I do thank you again for your help.
Sign in to reply or start a new topic where your account has permission.