From ffd69d40d18799f47c97fab7a3e8af65854c9d45 Mon Sep 17 00:00:00 2001 From: "B.Greenham" Date: Wed, 28 Jul 2010 19:54:22 -0400 Subject: [PATCH] Fix the 'phantom user' bug, along with a bug that would make repeat mode changes appear on burst. --- modules/core/m_join.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/core/m_join.c b/modules/core/m_join.c index 81a6281..ad1b872 100644 --- a/modules/core/m_join.c +++ b/modules/core/m_join.c @@ -532,7 +532,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char { fl = 0; - for (i = 0; i < 2; i++) + for (i = 0; i < 4; i++) { if(*s == '!') { @@ -692,7 +692,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char para[pargs++] = target_p->name; } } - if(fl & CHFL_CHANOP) + else if(fl & CHFL_CHANOP) { *mbuf++ = 'o'; para[pargs++] = target_p->name; @@ -742,7 +742,7 @@ ms_sjoin(struct Client *client_p, struct Client *source_p, int parc, const char para[pargs++] = target_p->name; } } - if(fl & CHFL_HALFOP) + else if(fl & CHFL_HALFOP) { *mbuf++ = 'h'; para[pargs++] = target_p->name;