OP Commands

Platform:  mIRC
Published  Jan 29, 2009
Updated  Jan 29, 2009
Hey, I was bored, so I look through my scripts and gathered some op commands for your channels and such.

This includes the basic commands with a few extra.

And, if someone uses the wrong commands, it will notify them.

Basic, I know, I was just bored and wanted somethnig to do. on *:TEXT:*:#: {
if (!ban == $strip($1)) && ($strip($2)) {
if ($nick isop $chan) {
mode $chan +b $2
}
else { msg $nick You're not oped on this channel. }
}
if (!voice == $strip($1)) && ($strip($2)) {
if ($nick isop $chan) {
mode $chan +v $2
}
elseif (!$2) { msg $chan No nick entered }
else { msg $nick You're not oped on this channel. }
}
if (!devoice == $strip($1)) && ($strip($2)) {
if ($nick isop $chan) {
mode $chan -v $2
}
elseif (!$2) { msg $chan No nick entered }
else { msg $nick You're not oped on this channel. }
}
if (!unban == $strip($1)) && ($strip($2)) {
if ($nick isop $chan) {
mode $chan -b $2
}
elseif (!$2) { msg $nick No nick entered. Try again. }
else { msg $nick You're not oped on this channel. }
}
if (!opc == $strip($1)) {
if ($nick isop $chan) {
.notice $nick Op commands are: !ban < username >, !unban < username >, !kick < username >, !+m, !im, !+i, !-i, !voice < username >, !devoice < username >, and !topic. Note: These commands only work for ops and if I am oped.
}
else { .notice $nick You need to be oped to see these commands. }
}
if (!kick == $strip($1)) && ($strip($2)) && ($strip($3-)) {
if ($nick isop $chan) {
kick $chan $2
.notice $2 You where kicked by: $nick at $time on $date for $3- .
}
elseif (!$2) { msg $nick No nick entered. Try again. }
elseif ($2 !ison $chan) { msg $nick $2 is not in this channel }
else { msg $nick You're not oped on this channel. }
}
if (!-m == $strip($1)) {
if ($nick isop $chan) {
mode $chan -m
}
else { msg $nick You're not oped on this channel. }
}
if (!+m == $strip($1)) {
if ($nick isop $chan) {
mode $chan +m
}
else { msg $nick You're not oped on this channel. }
}
if (!topic == $strip($1)) && ($strip($2-)) {
if ($nick isop $chan) {
topic $chan $2-
}
else { msg $nick You're not oped on this channel. }
}
if (!+i == $strip($1)) {
if ($nick isop $chan) {
mode $chan +i
}
else { msg $nick You're not oped on this channel. }
}
if (!-i == $strip($1)) {
if ($nick isop $chan) {
mode $chan -i
}
else { msg $nick You're not oped on this channel. }
}
if (! == $strip($1)) {
if ($nick isop $chan) {
if ($1 == files) { halt } | msg $nick That op command cannot be found. Please try again. }
}
}

Comments

Sign in to comment.
Bluepower10   -  Feb 20, 2009
There are differences. One is for all ops, and the other is for all commands.
 Respond  
Abtehi   -  Feb 19, 2009
SIMILAR POST REPEATED!! http://www.hawkee.com/snippet/5615/
 Respond  
Xpl0reR   -  Jan 31, 2009
you got napa'd again... !!!
 Respond  
Bluepower10   -  Jan 30, 2009
Lol, it is incase they mess up the commands or get confused and type !unbanme or something it would tell them it was wrong.
 Respond  
napa182   -  Jan 30, 2009
thats why i didnt add it in the rewrite lol no point to it.
 Respond  
Aucun50   -  Jan 30, 2009
I have no idea what that's for looks like it does nothing.
 Respond  
PuNkTuReD   -  Jan 30, 2009
i might be wrong but this looks wrong to me
Code
 


$1 cant == "!" and "files"
 Respond  
Aucun50   -  Jan 29, 2009
Lol myspace jr!
 Respond  
napa182   -  Jan 29, 2009
Aucun50 said:
a script that's really good they get like 1 comment.


well the codes that are good for the most part will have comments like nice work, and good job.

but even the best of codes have bugs. what happens is someone will post a nice code then some numb nut new user will post about 10 either ripped or crap codes in a row then another user will post 20 diff versions of the same POS code then what happens to the users nice code???? it gets lost in a sea of usesless crap.

it's one of the biggest problems this site has besides the myspacers that think this site is myspace jr.
 Respond  
Aucun50   -  Jan 29, 2009
No, lol type oped then opped and opped is wrong
 Respond  
sunslayer   -  Jan 29, 2009
isnt "oped" spelled opped :p
 Respond  
Aucun50   -  Jan 29, 2009
Idk like some super flood protection are something like that, a script that's really good they get like 1 comment.
 Respond  
napa182   -  Jan 29, 2009
Aucun50 said:
the ones that are like !UberHack (ip)


and where are these uber codes?
 Respond  
Aucun50   -  Jan 29, 2009
Funny how the most basic script get the most attention yet the ones that are like !UberHack (ip) get nothing lol
 Respond  
napa182   -  Jan 29, 2009
eh ez to read in scripts editer ;x
 Respond  
irchainscriptz   -  Jan 29, 2009
yeah i know but the way u clean it LOL ....:P to clean lmao
 Respond  
napa182   -  Jan 29, 2009
piff it's the same code as Bluepower10's just cleaned up abit
 Respond  
irchainscriptz   -  Jan 29, 2009
LMAO your not the only one ......!!!
 Respond  
Aucun50   -  Jan 29, 2009
/me looks at napas code and get dizzy
 Respond  
napa182   -  Jan 29, 2009
no need to check if $nick isop on every command, and you should make sure that the bot or who ever is running this code has op in the channel.

you also dont have to use $strip in every command line you can use tokenize 32 $strip($1-).

Code
 


but as ur code is 4/10
 Respond  
Bluepower10   -  Jan 29, 2009
Fixed it, and thanks. :D
 Respond  
Aucun50   -  Jan 29, 2009
You missing an end bracket :)

BTW your getting a lot better at scripting Good work.
 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.