mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-06-28 11:56:37 +02:00
topci fixes
This commit is contained in:
@@ -35,3 +35,5 @@
|
||||
- You can no longer specify an *@unrealircd.com/org, or unreal-*@lists.sourceforge.net email
|
||||
as your KLINE_ADDRESS (the "Why am I K:lined?" messages got too annoying)
|
||||
- Removed some irc.flirt.org references.
|
||||
- Made it so if a channel is +O or +A and you are not +O or +A and not in the channel, you can not
|
||||
/topic #channel same for +b if not +o or on the channel. Suggested by Sysop_Mars
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user