diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-04-25 13:40:27 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-04-25 13:40:27 +0000 |
commit | a3cc519f08f5185313edf7da7dd18b33c75c3e41 (patch) | |
tree | 74d6e2cf92933dc12661859990037af67ee0dd3a /modules | |
parent | ebc197837068b078ca24a6ab7be16339828873aa (diff) |
- m_set.c: misc. fixes and cleanups
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@3384 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_set.c | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/modules/m_set.c b/modules/m_set.c index 4239c4b..fec5779 100644 --- a/modules/m_set.c +++ b/modules/m_set.c @@ -46,7 +46,7 @@ static void quote_autoconn(struct Client *source_p, const char *arg, int newval) { - if (arg != NULL) + if (!EmptyString(arg)) { struct MaskItem *conf = find_exact_name_conf(CONF_SERVER, NULL, arg, NULL, NULL); @@ -471,14 +471,11 @@ mo_set(struct Client *client_p, struct Client *source_p, intarg = parv[n++]; if ((n - 1) > parc) - { - if (parc > 2) sendto_one(source_p, ":%s NOTICE %s :SET %s expects (\"%s%s\") args", me.name, source_p->name, tab->name, (tab->wants_char ? "string, " : ""), - (tab->wants_char ? "int" : "")); - } + (tab->wants_int ? "int" : "")); if (parc <= 2) { @@ -486,13 +483,6 @@ mo_set(struct Client *client_p, struct Client *source_p, intarg = NULL; } - if (!strcmp(tab->name, "AUTOCONN") && (parc < 4)) - { - sendto_one(source_p, form_str(ERR_NEEDMOREPARAMS), - me.name, source_p->name, "SET"); - return 0; - } - if (tab->wants_int && (parc > 2)) { if (intarg) |