diff options
author | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-30 18:12:54 +0000 |
---|---|---|
committer | michael <michael@82007160-df01-0410-b94d-b575c5fd34c7> | 2014-01-30 18:12:54 +0000 |
commit | 899c358ffe3e478ee329916a9989a43fab10dbf7 (patch) | |
tree | 4f9bc1370c1659dd93885dcd74019bd8b4a9ab2f /modules | |
parent | 09302a8357536d11c8531212de1a54703f17fca4 (diff) |
- m_admin.c, m_motd.c: do_admin() and do_motd() always succeed. Make them a void again.
git-svn-id: svn://svn.ircd-hybrid.org/svnroot/ircd-hybrid/branches/8.1.x@2965 82007160-df01-0410-b94d-b575c5fd34c7
Diffstat (limited to 'modules')
-rw-r--r-- | modules/m_admin.c | 9 | ||||
-rw-r--r-- | modules/m_motd.c | 7 |
2 files changed, 9 insertions, 7 deletions
diff --git a/modules/m_admin.c b/modules/m_admin.c index 2828287..1ff26b2 100644 --- a/modules/m_admin.c +++ b/modules/m_admin.c @@ -41,7 +41,7 @@ * * \param source_p Pointer to client to report to */ -static int +static void do_admin(struct Client *source_p) { const char *me_name = ID_or_name(&me, source_p); @@ -64,7 +64,6 @@ do_admin(struct Client *source_p) if (AdminInfo.email != NULL) sendto_one(source_p, form_str(RPL_ADMINEMAIL), me_name, nick, AdminInfo.email); - return 0; } /*! \brief NICK command handler (called by already registered, @@ -101,7 +100,8 @@ m_admin(struct Client *client_p, struct Client *source_p, parc, parv) != HUNTED_ISME) return 0; - return do_admin(source_p); + do_admin(source_p); + return 0; } /*! \brief ADMIN command handler (called by operators and @@ -126,7 +126,8 @@ ms_admin(struct Client *client_p, struct Client *source_p, parc, parv) != HUNTED_ISME) return 0; - return do_admin(source_p); + do_admin(source_p); + return 0; } static struct Message admin_msgtab = diff --git a/modules/m_motd.c b/modules/m_motd.c index 42d788a..e7c487b 100644 --- a/modules/m_motd.c +++ b/modules/m_motd.c @@ -45,7 +45,6 @@ do_motd(struct Client *source_p) source_p->name, source_p->username, source_p->host, source_p->servptr->name); motd_send(source_p); - return 0; } /* @@ -75,7 +74,8 @@ m_motd(struct Client *client_p, struct Client *source_p, parc, parv) != HUNTED_ISME) return 0; - return do_motd(source_p); + do_motd(source_p); + return 0; } /* @@ -99,7 +99,8 @@ mo_motd(struct Client *client_p, struct Client *source_p, parc, parv) != HUNTED_ISME) return 0; - return do_motd(source_p); + do_motd(source_p); + return 0; } static struct Message motd_msgtab = |