diff options
-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 = |