1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-03 22:53:12 +02:00

topci fixes

This commit is contained in:
codemastr
2000-12-20 17:36:29 +00:00
parent 6bc1965492
commit 4d8e57d51d
2 changed files with 8 additions and 0 deletions
+6
View File
@@ -3487,6 +3487,12 @@ int m_topic(cptr, sptr, parc, parv)
if (!topic) /* only asking for topic */
{
if ((chptr->mode.mode & MODE_OPERONLY && !IsAnOper(sptr) && !IsMember(sptr, chptr)) ||
(chptr->mode.mode & MODE_ADMONLY && !IsAdmin(sptr) && !IsMember(sptr, chptr)) ||
(is_banned(sptr,sptr,chptr) && !IsAnOper(sptr) && !IsMember(sptr, chptr))) {
sendto_one(sptr, err_str(ERR_NOTONCHANNEL), me.name, parv[0], name);
return;
}
if (!chptr->topic)
sendto_one(sptr, rpl_str(RPL_NOTOPIC),
me.name, parv[0], chptr->chname);