summaryrefslogtreecommitdiff
path: root/contrib/m_ojoin.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@armlinux.org.uk>2016-06-05 16:33:27 +0100
committerRussell King <rmk+kernel@armlinux.org.uk>2016-06-05 17:47:57 +0100
commita36d730dc2c6e6e68d2a84ec8e1c7cff91e2986b (patch)
tree36532c5cf9f1056c51f1147e6eb161a5b69da7c0 /contrib/m_ojoin.c
parentd3f800d23b4fdab512d437611c85eb3288f4f6b5 (diff)
update contrib modules
Diffstat (limited to 'contrib/m_ojoin.c')
-rw-r--r--contrib/m_ojoin.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/contrib/m_ojoin.c b/contrib/m_ojoin.c
index e0ff868..8be0a4a 100644
--- a/contrib/m_ojoin.c
+++ b/contrib/m_ojoin.c
@@ -41,7 +41,7 @@
* parv[0] = sender prefix
* parv[1] = channels separated by commas
*/
-static void
+static int
mo_ojoin(struct Client *client_p, struct Client *source_p,
int parc, char *parv[])
{
@@ -58,7 +58,7 @@ mo_ojoin(struct Client *client_p, struct Client *source_p,
{
sendto_one(source_p, form_str(ERR_NOPRIVILEGES),
me.name, source_p->name);
- return;
+ return 0;
}
for (name = strtoken(&t, name, ","); name;
@@ -143,6 +143,8 @@ mo_ojoin(struct Client *client_p, struct Client *source_p,
channel_member_names(source_p, chptr, 1);
}
}
+
+ return 0;
}
static struct Message ojoin_msgtab = {