[X2serv-cvs] [CVS] Module x3: Change committed
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2005-03-20 01:44:17
|
Committer : Alex Schumann <ru...@us...> CVSROOT : /cvsroot/x2serv Module : x3 Commit time: 2005-03-20 01:44:04 UTC Modified files: ChangeLog.X3 src/opserv.c Log message: Last patch caused a bug removing warn. fixed it here. ---------------------- diff included ---------------------- Index: x3/ChangeLog.X3 diff -u x3/ChangeLog.X3:1.13 x3/ChangeLog.X3:1.14 --- x3/ChangeLog.X3:1.13 Sat Mar 19 17:11:34 2005 +++ x3/ChangeLog.X3 Sat Mar 19 17:43:54 2005 @@ -6,7 +6,7 @@ * chanserv.c: Changed style of command outputs, added userlevel back to users list. - * opserv.c: Changed style of command outputs + * opserv.c: Changed style of command outputs, removed warn feature * tools.c: shortened duration string lengths @@ -75,5 +75,5 @@ ***********************************************************************/ -#define CVS_VERSION "$Revision: 1.13 $" +#define CVS_VERSION "$Revision: 1.14 $" Index: x3/src/opserv.c diff -u x3/src/opserv.c:1.15 x3/src/opserv.c:1.16 --- x3/src/opserv.c:1.15 Sat Mar 19 17:11:35 2005 +++ x3/src/opserv.c Sat Mar 19 17:43:54 2005 @@ -238,6 +238,7 @@ { "OSMSG_SERVER_JUPED", "Added new jupe server %s." }, { "OSMSG_SERVER_NOT_JUPE", "That server is not a juped server." }, { "OSMSG_SERVER_UNJUPED", "Server jupe removed." }, + /* { "OSMSG_WARN_ADDED", "Added channel activity warning for $b%s$b (%s)" }, { "OSMSG_WARN_EXISTS", "Channel activity warning for $b%s$b already exists." }, { "OSMSG_WARN_DELETED", "Removed channel activity warning for $b%s$b" }, @@ -245,6 +246,7 @@ { "OSMSG_WARN_LISTSTART", "Channel activity warnings:" }, { "OSMSG_WARN_LISTENTRY", "%s (%s)" }, { "OSMSG_WARN_LISTEND", "End of activity warning list." }, + */ { "OSMSG_UPLINK_CONNECTING", "Establishing connection with %s (%s:%d)." }, { "OSMSG_CURRENT_UPLINK", "$b%s$b is already the current uplink." }, { "OSMSG_INVALID_UPLINK", "$b%s$b is not a valid uplink name." }, @@ -1992,26 +1994,26 @@ timeq_add(now + opserv_conf.purge_lock_delay, opserv_part_channel, channel); } -/* static void opserv_channel_check(struct chanNode *newchan) { - char *warning; + /*char *warning; */ if (!newchan->join_policer.params) { newchan->join_policer.last_req = now; newchan->join_policer.params = opserv_conf.join_policer_params; } + /* if ((warning = dict_find(opserv_chan_warn, newchan->name, NULL))) { char message[MAXLEN]; snprintf(message, sizeof(message), "Channel activity warning for channel %s: %s", newchan->name, warning); global_message(MESSAGE_RECIPIENT_OPERS, message); } + */ - * Wait until the join check to shut channels down. * + /* Wait until the join check to shut channels down. */ newchan->bad_channel = opserv_bad_channel(newchan->name); } -*/ static void opserv_channel_delete(struct chanNode *chan) @@ -4351,7 +4353,7 @@ reg_new_user_func(opserv_new_user_check); reg_nick_change_func(opserv_alert_check_nick); reg_del_user_func(opserv_user_cleanup); -/* reg_new_channel_func(opserv_channel_check); */ + reg_new_channel_func(opserv_channel_check); reg_del_channel_func(opserv_channel_delete); reg_join_func(opserv_join_check); reg_auth_func(opserv_staff_alert); ----------------------- End of diff ----------------------- |