From f4ed5745de77705dd9eecf39030c8be5f78516c2 Mon Sep 17 00:00:00 2001 From: jilles Date: Fri, 13 Apr 2007 12:06:53 -0700 Subject: [PATCH] [svn] set: Use sendto_one_notice() for MAXCLIENTS too high notice. --- ChangeLog | 9 +++++++++ include/serno.h | 2 +- modules/m_set.c | 10 +++++----- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6d0693b5e..3a5247ea4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +nenolod 2007/04/06 21:25:37 UTC (20070406-3404) + Log: + - 2.2 operline + + + Changes: Modified: + +1 -1 trunk/src/messages.tab (File Modified) + + jilles 2007/04/05 00:38:52 UTC (20070405-3396) Log: Show max_clients in /info. diff --git a/include/serno.h b/include/serno.h index 34316fbc9..53a857d3a 100644 --- a/include/serno.h +++ b/include/serno.h @@ -1 +1 @@ -#define SERNO "20070405-3396" +#define SERNO "20070406-3404" diff --git a/modules/m_set.c b/modules/m_set.c index 6166c0f29..342e1de05 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -21,7 +21,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA * - * $Id: m_set.c 3394 2007-04-05 00:33:52Z jilles $ + * $Id: m_set.c 3406 2007-04-13 19:06:53Z jilles $ */ /* rewritten by jdc */ @@ -52,7 +52,7 @@ struct Message set_msgtab = { }; mapi_clist_av1 set_clist[] = { &set_msgtab, NULL }; -DECLARE_MODULE_AV1(set, NULL, NULL, set_clist, NULL, NULL, "$Revision: 3394 $"); +DECLARE_MODULE_AV1(set, NULL, NULL, set_clist, NULL, NULL, "$Revision: 3406 $"); /* Structure used for the SET table itself */ struct SetStruct @@ -248,9 +248,9 @@ quote_max(struct Client *source_p, int newval) { if(newval > ServerInfo.max_clients) { - sendto_one(source_p, - ":%s NOTICE %s :You cannot set MAXCLIENTS to > max_clients (%d)", - me.name, source_p->name, ServerInfo.max_clients); + sendto_one_notice(source_p, + ":You cannot set MAXCLIENTS to > max_clients (%d)", + ServerInfo.max_clients); return; }