From: pk910 Date: Thu, 10 May 2012 20:59:52 +0000 (+0200) Subject: keep in sync with OGN upstream (SVN-319) X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=698f3048f5f4d26aa51629f60fbbab08068e2129 keep in sync with OGN upstream (SVN-319) --- diff --git a/ircd/m_svsjoin.c b/ircd/m_svsjoin.c index f79e4cc..c3fa556 100644 --- a/ircd/m_svsjoin.c +++ b/ircd/m_svsjoin.c @@ -78,8 +78,8 @@ int m_svsjoin(struct Client *cptr, struct Client *sptr, int parc, char *parv[]) joinbuf_init(&join, acptr, acptr, JOINBUF_TYPE_JOIN, 0, 0); joinbuf_init(&create, acptr, acptr, JOINBUF_TYPE_CREATE, 0, TStime()); - flags = (chptr->users == 0) ? CHFL_CHANOP : CHFL_DEOPPED; - if(chptr) joinbuf_join(&join, chptr, flags); + flags = (chptr->users == 0) ? CHFL_CHANOP | CHFL_CHANNEL_MANAGER : CHFL_DEOPPED; + if(chptr->users) joinbuf_join(&join, chptr, flags); else joinbuf_join(&create, chptr, flags); /* Send information to the user. */