Demode all users

By Geckat on Feb 16, 2011

A lot of people post their "ingenious" auto-kick-all scripts and get responses typically along the lines of, "this is actually a get-yourself-banned-from-your-server script." The fact is that some of us like power a little too much and enjoy the prospect of affecting one's entire channel, users all, with a couple keystrokes. It just doesn't stop being funny, at least until you get booted from the server for kick flooding.

Servers don't generally control the number of modes you can set with one command, though, and I personally find that getting devoiced is a lot more humiliating than getting kicked (especially if you have auto-rejoin ticked), so I wrote this up quickly to mess with my minions when the fancy takes me. It is also capable of removing +h and +o for those folks who think they're "safe" because you decided to share a little bit of your ass-kicking utility with them. The fools.

Syntax is /wr [ho] - where, without brackets, h has everyone devoiced and half-ops de-half-op'd, and o de-ops all the ops. Except you, of course, in all cases. Please use EITHER h or o. I don't know what will happen if you write /wr ho, but I don't want to find out. Without h or o, it just devoices all the lowly schmucks whose sole purpose of existence is as your disposable playthings.

The script does not set or unset +m. It's assumed that you are used to muting people for fun. Known issue is that +hs and +os are set -v regardless, and +os that are also +h for whatever reason are also -h'd. Hopefully you can deal with that, as I can't think of a method to remedy this that would actually be worth the time.

Description is far too long for the simple script, but, well, I thought it was funny. Enjoy, and do point out any issues if you have them so that I can go beet-red and fix them. Well, more red than I am already. You can probably tell I'm not that sober right now. Excuse me.

alias wr {
  var %mode -
  var %findnick 1
  while ($nick($chan,%findnick,v)) {
    if ($nick($chan,%findnick,v) != $me) {
      var %nicklist $addtok(%nicklist,$nick($chan,%findnick,v),32)
      var %mode %mode $+ v
    }
    inc %findnick
  }
  if ($1 == h) || ($1 == o) {
    var %findnick 1
    while ($nick($chan,%findnick,h)) {
      if ($nick($chan,%findnick,h) != $me) {
        var %nicklist $addtok(%nicklist,$nick($chan,%findnick,h),32)
        var %mode %mode $+ h
      }
      inc %findnick
    }
    if ($1 == o) {
      var %findnick 1
      while ($nick($chan,%findnick,o)) {
        if ($nick($chan,%findnick,o) != $me) {
          var %nicklist $addtok(%nicklist,$nick($chan,%findnick,o),32)
          var %mode %mode $+ o
        }
        inc %findnick
      }
    }
  }
  mode $chan %mode %nicklist
}

Comments

Sign in to comment.
Geckat   -  Feb 21, 2011

I agree, admin. I run a forum along with a channel, and the only posts I ever delete are those of spambots (backlinks and whatnot). When I decide to go on Hawkee when I'm actually awake, I'll make a point of cleaning up this thread, though, now that this has all been said and done. Just for cleanliness's sake.

@ Mosh: I will definitely look at those identifiers and see if I can't work them into the script. I also wasn't aware it was common for mode/line limits to be stringent on servers. Dynastynet just underwent a system change, so perhaps I should find out and make sure.

 Respond  
MoshMage   -  Feb 20, 2011

WOW! Dean is a powerfull maggot, he summoned "Hawkee" to the snippet, praises must be given xD
Also, i think the Snippet poster can, and should, remove unwanted commentary.

ontopic: $modespl = the limit of modes per line the server can handle;
instead of $str() you use $modespl($str()) (or somewhere along those lines, i dont remember it clearly 'cause im using a Kite atm)

you should, also, look at $nick in /help and read the identifier .pnick because it would cut your code in about.. half or so lines

 Respond  
Hawkee   -  Feb 18, 2011

Some comments here have been brought to my attention. While I don't like to delete nonsense comments myself, I do encourage Geckat to delete anything that isn't relevant to his snippet. Its a fine line as an administrator to delete comments because it discourages free speech. Personally I disagree with a lot of the language and dialog going on here, but this isn't my personal site. It's what the members make of it.

I can understand a new member coming along to stir up some trouble, but I'm disappointed to see regulars taking the bait and perpetuating the trouble for days on end. I hope we can all be more professional and either ignore what needs to be ignored or respond in a mature way.

 Respond  
Geckat   -  Feb 17, 2011

Wow, thanks for all the comments, guys! I really appreciate all the constructive advice I got, and I'm glad you're all enjoying the script so much. Please feel free to spam up my other scripts as well!

Dunno what $modespl is, but Jethro's always been a big help before so I'll give it a look sometime. I'm sure it can be incorporated.

Thanks for the comment, Litch, and glad you like the script. I was a tad surprised to see 52 notices on this script, but I suppose I should leave these comments here until some moderation can be done. Far as I can see, nothing was done about Dean.

Sunny, that image is perfect, and it's so true (at least on my goofy channel). I've half a mind to put it up on the Mibbit client we have on the site as a joke.

Pretty much all the rest of you should A) stop trolling, B) stop being so trollable, and C) gtfo my snippet.

 Respond  
napa182   -  Feb 17, 2011

lol and yet SunnyD you got sucked into it by making that half of a comment ;x I stopped awhile ago but he just kept making comments, and too the others that got sucked into the black hole of a egomaniac aka Dean... It don't matter what you say to him for your words are lost on him or they are over his head. So don't even bother...
and on that note I bid you all adieu.....

 Respond  
Jethro   -  Feb 17, 2011

Yes SunnyD, you have a point. We care too much about what folks have to say, yet we fall into the trap of a troll boy. The only thing to do from now on is ignore and move on.

 Respond  
Sorasyn   -  Feb 17, 2011

Jethro_ & Napa hypocritical how you say

Dean don't take ur pathetic fights to other peoples snippets. and
You do not own this site so please don't try to set out your personal grudge against people you dislike and, as napa said, bring someone's thread into your fight arena. Thanks for your cooperation.
yet you both get wrapped up in it yourselves in what has turned a simple snippet into a battle-torn page littered with vulgar comments (although funny they are lol). By far I am not supporting Dean in any case since it was his shit attitude and sheer disrespect for Hawkee users that started it. :/

SLAP ON THE HAND!!! JK xD

Also Geckat, as i was reading your introduction to the script, I find this picture (posted by a friend here at hawkee) to be "relephant" in this case lol. http://www.hawkee.com/profile/img/188355/

 Respond  
Jonesy44   -  Feb 17, 2011

-

 Respond  
_Dean_   -  Feb 17, 2011

this conversation its becoming too much gay, guys talking about other guys balls
bye

 Respond  
Jethro   -  Feb 17, 2011

Excuse my language, you often suck your own to feel secure. That's what you've been doing.

 Respond  
_Dean_   -  Feb 17, 2011

its sounds too much gay, you asking to me grow some balls, are u not satisfied with mines?

 Respond  
Jethro   -  Feb 17, 2011

You call me a girl, and then you use "omg" every now and then. What's next? You sound like a spoiled little brat.

 Respond  
_Dean_   -  Feb 17, 2011

Atleast get a pic that isn't F_cking awesome

you're kidding right? call that pic awsome... omg

 Respond  
Jonesy44   -  Feb 17, 2011

-

 Respond  
Litch   -  Feb 17, 2011

Anyway....

Nice script Geckat. :) It's just a shame that most of the attention here got diverted away from your snippet.

 Respond  
Jethro   -  Feb 16, 2011

I'm not mad. I feel sorry for you.

 Respond  
_Dean_   -  Feb 16, 2011

Jethro_ looks like a little girl, when he is mad

 Respond  
Jethro   -  Feb 16, 2011

You're the despicable son of a gun. You initially put the number 1 in your example at the forum. No matter what you try to prove the point of being one second, it's not one second but 0.001. The user who takes your example and runs it will end up getting all the messages displayed in the channel together, causing a flood.

Stop deflecting people's words and come up with other excuses to cover your trolling, little aѕs.

 Respond  
_Dean_   -  Feb 16, 2011

sorry sunslayer, didnt know u was an english teacher...

i thought i was on hawkee, not in a school forum

 Respond  
_Dean_   -  Feb 16, 2011

omg Jethro_, you're so dyslexic, you're just saying the same thing i said...
i already said, that i know that 1 on play, its not 1 second, and i always use 1 on it, even knowing its not 1 second, you take too much time, to write an answer, for other see and say "omg, he in so inteligent" that, you forgot to read the posts

you dont need to explain something to me, that is already on help file

with a default delay of 1000 milliseconds, ie. 1 second. Empty lines are treated as a delay.

 Respond  
sunslayer   -  Feb 16, 2011

why should him? its his code, he do whatever he wants, why dont u just give ur advice, and stop say what ppl should or not HURR-DURRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRR

sorey mi ingleish is are they no cheese good

 Respond  
MoshMage   -  Feb 16, 2011

this forum should have "like" buttons.

 Respond  
Jethro   -  Feb 16, 2011

i always put 1, since the 1 its by defaultMr. Hotshot, conduct a test yourself.

on your status window while being offline.

/play -s <file> 1
  • Playing 'file' to Status Window with 1ms delay <= this is not a one second delay but 0.001. All the messages in the file will then spit out all together, literally without a delay.
/play -s <file> 1000
  • Playing 'file' to Status Window with 1000ms delay<= this equals to one second. And you will see all the messages come out one line after another in a one second delay.

By default, the delay is already 1 second; you do not need to include 1000.

 Respond  
napa182   -  Feb 16, 2011

Dean, you really need to stop the incoherent babbling. I know your ego is bruised, and to that you will most likely comment back trying to insult, but your insults are as lame as a retarded clown.

 Respond  
_Dean_   -  Feb 16, 2011

You disregarded the part where I said I included the backlash as a habit for certain characters.

same thing what i did with the play, i always put 1, since the 1 its by default

 Respond  
Jethro   -  Feb 16, 2011

I wasn't right or wrong. You disregarded the part where I said I included the backlash as a habit for certain characters.

Now, you said I tried to "teach" you. I never said I wanted to teach anyone. There is a difference between teaching and suggesting. You need to get that out of your thick, insecure head.> i just gave him an advice, and u gave urs example, but i gave one better than ursI think the words I mark read pretty much says who's been refusing to get off his high horse.

 Respond  
_Dean_   -  Feb 16, 2011

Dean put that at the forum.

Jethro_, i think they can check the forum by themselves, and yes, the only dumba­ss here its you, i already know that the 1 its not 1 second, as i said as ever you're trying to show to ppl, that you better than others, how can u proof that i dont know that?

its the same thing that u did with the regex, putting the backslash on the
"=" equal symbol, and u didnt admit that u was wrong, and it was not necessary.
dont try to teach me when there is a help file for this

 Respond  
Jethro   -  Feb 16, 2011

.play # test.txt 1Dean put that at the forum.

RusselB replied> I think you made a mistake with the /play command in this line
According to the help file, putting a 1 there will make a 1 millisecond delay (0.001 seconds) not 1 second.Then he said,> i know
if i put 1000 it will be 1 secondIt's obvious he doesn't know at that moment, and he'll always find something to covert his guilt for not knowing. His typical defense phrases are as follows:

"Yeah I forgot"
"I know....I meant to do that"

If you don't know, you don't know. Be a man and admit it, or else you'll always be a cowardly troll.

 Respond  
MoshMage   -  Feb 16, 2011

DUDE. OMFG. Like.. who in his right mind tries to insult someone in his Mother Tongue using the google translator?

I knew you were dumb, but just now you've outgrown yourself: Latin derived languages use more complex sentence writing than English you dumb twat!

Like i said, trolls give life to hawkee :D

 Respond  
napa182   -  Feb 16, 2011

yawns

 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.