diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-19 19:11:56 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2013-01-19 19:11:56 +0000 |
commit | 9f6d873c7562b4afff4af7219ca8e2e78d9132ef (patch) | |
tree | cab23f733dda6af8e834e5772619ccce86cb4d9d /modules | |
parent | 05b30f562021f60d952fec2fc7b24347afc94cc7 (diff) |
- m_rehash(): cosmetical cleanups
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/trunk@1769 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_rehash.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/m_rehash.c b/modules/m_rehash.c index c768c4c..77f5633 100644 --- a/modules/m_rehash.c +++ b/modules/m_rehash.c @@ -53,7 +53,7 @@ mo_rehash(struct Client *client_p, struct Client *source_p, return; } - if (parc > 1) + if (!EmptyString(parv[1])) { if (irccmp(parv[1], "DNS") == 0) { @@ -82,8 +82,9 @@ mo_rehash(struct Client *client_p, struct Client *source_p, } else { - sendto_one(source_p, ":%s NOTICE %s :rehash one of :DNS MOTD", - me.name, source_p->name); + sendto_one(source_p, ":%s NOTICE %s :%s is not a valid option. " + "Choose from DNS, MOTD", + me.name, source_p->name, parv[1]); return; } } |