From 899c358ffe3e478ee329916a9989a43fab10dbf7 Mon Sep 17 00:00:00 2001 From: michael Date: Thu, 30 Jan 2014 18:12:54 +0000 Subject: - 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 --- modules/m_admin.c | 9 +++++---- modules/m_motd.c | 7 ++++--- 2 files changed, 9 insertions(+), 7 deletions(-) (limited to 'modules') 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 = -- cgit