From efeb36c4929decb2c7b11c767e582dcf46a6d2e8 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 20 Jan 2010 11:12:43 +0300 Subject: [PATCH] - update uhub.conf example after add !rules - add example rules.txt - fix compile warning in src/util/timeout.c - add example config file for rotate log file in RHEL\CentOS --- doc/rules.txt | 5 +++++ doc/uhub.conf | 5 +++++ src/util/timeout.c | 3 ++- 3 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 doc/rules.txt diff --git a/doc/rules.txt b/doc/rules.txt new file mode 100644 index 0000000..dbe62ce --- /dev/null +++ b/doc/rules.txt @@ -0,0 +1,5 @@ +1. rule #1 +2. rule #2 +3. rule #3 +...... +34. Rule #34 \ No newline at end of file diff --git a/doc/uhub.conf b/doc/uhub.conf index eaf234f..2b34761 100644 --- a/doc/uhub.conf +++ b/doc/uhub.conf @@ -39,6 +39,11 @@ file_acl=/etc/uhub/users.conf # Normally this message is sent to clients when connecting. file_motd=/etc/uhub/motd.txt +# This file can contain a rules of the hub. +# Normally this message is sent to clients when write in chat !rules +file_rules=/etc/uhub/rules.txt + + # Slots\share\hubs limits limit_max_hubs_user = 0 limit_max_hubs_reg = 0 diff --git a/src/util/timeout.c b/src/util/timeout.c index 1009e70..38137d8 100644 --- a/src/util/timeout.c +++ b/src/util/timeout.c @@ -123,4 +123,5 @@ void timeout_queue_reschedule(struct timeout_queue* t, struct timeout_evt* evt, if (timeout_evt_is_scheduled(evt)) timeout_queue_remove(t, evt); timeout_queue_insert(t, evt, seconds); -} \ No newline at end of file +} +