Various fixes for irc module

This commit is contained in:
Ossi Salmi 2012-11-19 12:08:50 +02:00
parent f19ae66ba5
commit 089082ef20
4 changed files with 85 additions and 18 deletions

View file

@ -178,7 +178,7 @@ class "users" {
number_per_cidr = 100;
/* max number: the maximum number of users allowed in this class */
max_number = 100;
max_number = 1000;
/* sendq: the amount of data allowed in a clients queue before
* they are dropped.
@ -230,6 +230,7 @@ auth {
class = "users";
<% if userpass != "" -%>
password = "<%= userpass %>";
flags = encrypted;
<% end -%>
};
@ -244,7 +245,9 @@ operator "root" {
* supported now.
* multiple user="" lines are supported.
*/
user = "*@127.0.0.1";
<% operator.each do |user| -%>
user = "<%= user %>";
<% end -%>
/* password: the password required to oper. Unless ~encrypted is
* contained in flags = ...; this will need to be encrypted using
@ -301,8 +304,7 @@ operator "root" {
*
*/
flags = global_kill, remote, kline, unkline, gline,
die, rehash, admin, xline, resv, operwall,
~encrypted;
die, rehash, admin, xline, resv, operwall;
};
/* If you are using the ratbox-services compatibility code, uncomment this. */
@ -639,7 +641,7 @@ general {
connect_timeout = 30 seconds;
/* disable auth: disables identd checking */
disable_auth = no;
disable_auth = <%= disable_identd %>;
/* no oper flood: increase flood limits for opers. */
no_oper_flood = yes;

View file

@ -105,6 +105,7 @@ reload)
restart|force-reload)
log_daemon_msg "Restarting $NAME" "$NAME"
ratbox_stop
sleep 2
ratbox_start
case "$?" in
0) log_end_msg 0 ;;

View file

@ -154,7 +154,9 @@ operator "root" {
/* user: specifies a user@host who may connect.
* multiple may be specified, wildcards are accepted.
*/
user = "*@127.0.0.1";
<% operator.each do |user| -%>
user = "<%= user %>";
<% end -%>
/* you may also restrict the oper to a specific server, they will
* then only be able to connect when using that server.
@ -167,7 +169,7 @@ operator "root" {
/* encrypted: specifies whether the above password has been
* encrypted or not. default: yes
*/
encrypted = no;
encrypted = yes;
/* flags: specifies what general privs an oper has
* admin - services admin, .die etc
@ -485,7 +487,7 @@ service "nickserv" {
realname = "nickname services";
/* disabled by default */
flags = opered, msg_self, disabled;
flags = opered, msg_self;
/* loglevel: level to log at, 0 to disable logging
* 1 - Admin commands