mirror of
https://github.com/unrealircd/unrealircd.git
synced 2026-07-05 02:53:13 +02:00
- Made it so if the channel is +m but -t, you need at least voice (+v) to change the topic.
Reported by aquanight (#0002233). [commit accidently happened earlier btw...]
This commit is contained in:
@@ -1102,3 +1102,5 @@
|
||||
- Improved CHROOTDIR documentation in include/config.h
|
||||
- Added error if CHROOTDIR is defined but IRC_UID isn't (in include/config.h).
|
||||
- Hide stats request if requested by an U-lined client. Suggested by vonitsanet (#0002865).
|
||||
- Made it so if the channel is +m but -t, you need at least voice (+v) to change the topic.
|
||||
Reported by aquanight (#0002233).
|
||||
|
||||
@@ -260,7 +260,7 @@ long flags = 0; /* cache: membership flags */
|
||||
{
|
||||
char buf[512];
|
||||
/* With +m and -t, only voice and higher may change the topic */
|
||||
ircsprintf(buf, "You need at least voice (+v) in order to change the topic on %s (channel is +m)", chptr->chname);
|
||||
ircsprintf(buf, "Voice (+v) or higher is required in order to change the topic on %s (channel is +m)", chptr->chname);
|
||||
sendto_one(sptr, err_str(ERR_CANNOTDOCOMMAND), me.name, parv[0], "TOPIC", buf);
|
||||
return -1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user