4.7 - Oper Block RECOMMENDED (Previously known as the O:Line)
oper <name> {
from {
userhost <hostmask>;
userhost <hostmask>;
};
password <password> { <auth-type>; };
class <class-name>;
flags <flags>;
flags {
<flag>;
<flag>;
...
};
swhois <whois info>;
snomask <snomask>;
modes <modes>;
maxlogins <num>;
};
The oper block allows you to assign IRC Operators for your server. The oper:: specifies the login name for the /oper. The oper::from::userhost is a user@host mask that the user must match, you can specify more than one hostmask by creating more than one oper::from::userhost. The oper::password is the password the user must specify, oper::password:: allows you to specify an authentication method for this password, valid auth-types are crypt, md5, and sha1, ripemd-160. If you want to use a plain-text password leave this sub-block out.
Please note that BOTH the login name and password are case sensitive
The oper::class directive specifies the name of a preexisting (appears before this in the config file) class name that the oper block will use.
The oper::flags directive has two formats. If you wish to use the old style oper flags i.e., OAa, you use the flags <flags> method, if you want to use the new style,i.e., services-admin, then you use the flags { <flag>; } method. Below is a list of all the flags (in both formats) and what they do.
Old Flag
New Flag
Description
o
local
Makes you a local operator
O
global
Makes you a global operator
C
coadmin
Makes you a coadmin
A
admin
Makes you a admin
a
services-admin
Makes you a services admin
N
netadmin
Makes you a Network Admin
r
can_rehash
Oper may use /rehash
D
can_die
Oper may use /die
R
can_restart
Oper may use /restart
h
helpop
Oper receives umode +h (helpop)
w
can_wallops
Oper can send /wallops
g
can_globops
Oper can send /globops
c
can_localroute
Can connect servers locally
L
can_globalroute
Can connect servers globally
k
can_localkill
Can /kill local users
K
can_globalkill
Can /kill global users
b
can_kline
Can use /kline
B
can_unkline
Can use /kline -u@h
n
can_localnotice
Can send local server notices
G
can_globalnotice
Can send global server notices
z
can_zline
Can use /zline
t
can_gkline
Can use /gline, /shun and /spamfilter
Z
can_gzline
Can use /gzline
W
get_umodew
Sets umode +W when u oper
H
get_host
Sets your host to an oper host
v
can_override
Can use OperOverride
q
can_setq
Can use usermode +q
X
can_addline
Can use /addline
d
can_dccdeny
Can use /dccdeny and /undccdeny
Certain flags give you other flags by default:
local global admin/coadmin services-admin netadmin
can_rehash can_rehash can_rehash can_rehash can_rehash
helpop helpop helpop helpop helpop
can_globops can_globops can_globops can_globops can_globops
can_wallops can_wallops can_wallops can_wallops can_wallops
can_localroute can_localroute can_localroute can_localroute can_localroute
can_localkill can_localkill can_localkill can_localkill can_localkill
can_kline can_kline can_kline can_kline can_kline
can_unkline can_unkline can_unkline can_unkline can_unkline
can_localnotice can_localnotice can_localnotice can_localnotice can_localnotice
can_globalroute can_globalroute can_globalroute can_globalroute
can_globalkill can_globalkill can_globalkill can_globalkill
can_globalnotice can_globalnotice can_globalnotice can_globalnotice
global global global
can_dccdeny can_dccdeny can_dccdeny
can_setq can_setq
admin
services-admin
The oper::swhois directive allows you to add an extra line to an opers whois information. [optional]
The oper::snomask directive allows you to preset an oper's server notice mask on oper up. For a list of available SNOMASKs, see Section 3.3 [optional]
The oper::modes directive allows you to preset an oper's modes on oper up. [optional]
The oper::maxlogins allows you to restrict the number of concurrent oper logins from this host, for example if you set it to 1 then only 1 person can be oper'ed via this block at any time. [optional]
Example:
oper bobsmith {
class clients;
from {
userhost
[email protected];
userhost
[email protected];
};
password "f00";
flags {
netadmin;
can_gkline;
can_gzline;
can_zline;
can_restart;
can_die;
global;
};
swhois "Example of a whois mask";
snomask frebWqFv;
};
Some little info about OperOverride:
OperOverride are things like: joining a +ikl channel and going through bans (you need to /invite yourself first however), op'ing yourself in a channel, etc.
The can_override operflag was added as an attempt to stop oper abuse. No oper is able to override by default, you would have to give them the can_override flag explicitly