Top

Oper Checker


mIRC Code
+ 0 likes
Please Register to submit score.
Average Score  0.0
Scores Submitted  0
Date Added  Mar 04, 2008
Last Updated  Mar 04, 2008
Tags  checker  oper 
  Bookmark and Share

Introduction

This is a simple Oper Checker. The Bot will check if the user has any Oper modes (o O N A a C) and will display what they have.


NOTE: Bot MUST be IRCOp


Grab the Code

Comments

  (9)  RSS
Lindrian
Comments: 755
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 2:28 pm
Use:
Quote:

$istok(text,token,C)

Returns $true if token exists, otherwise returns $false.



Note: $istokcs() is the case-sensitive version.

for the last part of ur script.
also, unset can be one line.
Unset %var1 %var2 etc.
Scakk
Comments: 237
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 2:47 pm
I would suggest changeing $6- to be $6 as the network I am on I have a N for a snomask ( can view nick changes on remote server ) and when used on myself I got the below.

[15:43] (Goofy|Around) <Goofy> !opercheck Goofy|Around
[15:43] <Goofy|Around> Checking Goofy|Around's oper modes.
[15:43] <Goofy|Around> Goofy|Around is a Net Admin.
[15:43] <Goofy|Around> Goofy|Around is a Services Admin.
[15:43] <Goofy|Around> Goofy|Around is a Local Operator.

I am not a Net Admin. I am a Services Admin/Global Oper.

Also on the Network I am on

o = Global
O = Local
LucSatise
Comments: 122
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 3:02 pm
edited.
The net ur on must be dif from unreal Scakk which is why ur loc/glob is dif.
Scakk
Comments: 237
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 3:10 pm
We use Unreal 3.2.7

Oper flags are as below for here.

o = Global IRC Operator
O = Local IRC Operator
a = Is a Services Administrator
A = Is a Server Administrator
N = Is a Network Administrator
C = Is a Co Administrator
Lindrian
Comments: 755
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 3:10 pm
Code:

raw 379:*:{
  if (N isincs $6) { msg %chan %nick is a Net Admin. }
  if (C isincs $6) { msg %chan %nick is a Co-Admin. }
  if (A isincs $6) { msg %chan %nick is a Server Admin. }
  if (a isincs $6) { msg %chan %nick is a Services Admin. }
  if (o isincs $6) { msg %chan %nick is a Local Operator. }
  if (O isincs $6) { msg %chan %nick is a Global Operator. }
  if (O !isincs $6) && (o !isincs $6) && (a !isincs $6) && (A !isincs $6) && (C !isincs $6) && (N !isincs $6) { msg %chan %nick Has no IRCop Powers. }
  unset %chan %nick %CheckingOper

}


should be, imo:

Code:

raw 379:*:{
  if (N isincs $6) msg %chan %nick is a Net Admin.
  elseif (C isincs $6) msg %chan %nick is a Co-Admin.
  elseif (A isincs $6) msg %chan %nick is a Server Admin.
  elseif (a isincs $6) msg %chan %nick is a Services Admin.
  elseif (o isincs $6) msg %chan %nick is a Local Operator.
  elseif (O isincs $6) msg %chan %nick is a Global Operator.
  else msg %chan %nick Has no IRCop Powers.
  unset %chan %nick %CheckingOper
}
Romulus777
Comments: 5
 
mIRC Snippet:  Oper Checker
Posted on Mar 4, 2008 3:12 pm
oh no, Scakk and I are from the same network, and it is indeed Unreal, You just haven't seen how heavily modified it is. We have modes that most clients wouldn't know how to handle, and trust me, I know. I've tried quite a few clients that didn't understand how to handle them.
LucSatise
Comments: 122
 
mIRC Snippet:  Oper Checker
Posted on Mar 5, 2008 9:53 am
Quote:

***** Oflags *****
-
Here you will find the flags that can be placed inside of the O:Lines
-
==-------------------------------oOo-----------------------------==
o (locop) Local Operator
O (globop) Global Operator
C (coadmin) Gets +C on oper up. Is Co Administrator
A (admin) Gets +A on oper up. Is Server Administrator
a (services-admin) Gets +a on oper up. Is Services Administrator
N (netadmin) Gets +N on oper up. Is Network Administrator

i just copied from helpop.
Scakk
Comments: 237
 
mIRC Snippet:  Oper Checker
Posted on Mar 5, 2008 10:07 am
In /helpop there is also a /helpop umodes that list

Quote:

***** Umodes *****
-
Here is a list of all the usermodes which are available for use.
-
==---------------------------oOo---------------------------==
o = Global IRC Operator
O = Local IRC Operator
a = Is a Services Administrator
A = Is a Server Administrator
N = Is a Network Administrator
C = Is a Co Administrator


And then a /helpop oflags that list

Quote:

***** Oflags *****
-
Here you will find the flags that can be placed inside of the O:Lines
-
==-------------------------------oOo-----------------------------==
o (locop) Local Operator
O (globop) Global Operator
C (coadmin) Gets +C on oper up. Is Co Administrator
A (admin) Gets +A on oper up. Is Server Administrator
a (services-admin) Gets +a on oper up. Is Services Administrator
N (netadmin) Gets +N on oper up. Is Network Administrator


So that could be the issue.


Also as I am a Services Admin and Global Oper I get +ao on my network while a Local Oper gets a +O.

Scakk
Comments: 237
 
mIRC Snippet:  Oper Checker
Posted on Mar 5, 2008 11:53 am
After checking with someone on my network I found out a bit about the part in my previous post.


Having oline flag 'o' will give you umode 'O'.
Having oline flag 'O' or above will give you umode 'o'.

Please Register or Login to start posting comments.
Bottom