+2005-05-07 Michael Poole <mdpoole@troilus.org>
+
+ * ircd/channel.c (joinbuf_join): Be smarter about what source to
+ use when opping a user that joins a channel.
+
2005-05-04 Reed Loden <reed@reedloden.com>
* ircd/m_trace.c (do_trace): Show the real nickname instead of the
/* send an op, too, if needed */
if (flags & CHFL_CHANOP)
- sendcmdto_channel_butserv_butone(&me, CMD_MODE, chan, NULL, 0, "%H +o %C",
+ sendcmdto_channel_butserv_butone((chan->mode.apass[0] ? &me : jbuf->jb_source),
+ CMD_MODE, chan, NULL, 0, "%H +o %C",
chan, jbuf->jb_source);
} else if (MyUser(jbuf->jb_source))
sendcmdto_one(jbuf->jb_source, CMD_JOIN, jbuf->jb_source, ":%H", chan);