Voice, devoice self on /voice, /devoice with no params

weechat-hashes
C. McEnroe 2020-04-06 16:30:03 -04:00
parent 151739e8da
commit db4af9e7ab
2 changed files with 15 additions and 13 deletions

View File

@ -1,4 +1,4 @@
.Dd March 31, 2020
.Dd April 6, 2020
.Dt CATGIRL 1
.Os
.
@ -354,10 +354,10 @@ Switch to window by number.
.Bl -tag -width Ds
.It Ic /ban Op Ar mask ...
List or ban masks from the channel.
.It Ic /deop Ar nick ...
Revoke channel operator status from users.
.It Ic /devoice Ar nick ...
Revoke voice from users in the channel.
.It Ic /deop Op Ar nick ...
Revoke channel operator status from users or yourself.
.It Ic /devoice Op Ar nick ...
Revoke voice from users or yourself in the channel.
.It Ic /except Op Ar mask ...
List or add masks to the channel ban exception list.
.It Ic /invex Op Ar mask ...
@ -370,16 +370,16 @@ In the
.Sy <network>
window,
show or set user modes.
.It Ic /op Ar nick ...
Grant users channel operator status.
.It Ic /op Op Ar nick ...
Grant users or yourself channel operator status.
.It Ic /unban Ar mask ...
Unban masks from the channel.
.It Ic /unexcept Ar mask ...
Remove masks from the channel ban exception list.
.It Ic /uninvex Ar mask ...
Remove masks from the channel invite list.
.It Ic /voice Ar nick ...
Grant users voice in the channel.
.It Ic /voice Op Ar nick ...
Grant users or yourself voice in the channel.
.El
.
.Sh KEY BINDINGS

View File

@ -219,13 +219,15 @@ static void commandDeop(uint id, char *params) {
}
static void commandVoice(uint id, char *params) {
if (!params) return;
channelListMode(id, '+', 'v', params);
if (params) {
channelListMode(id, '+', 'v', params);
} else {
ircFormat("PRIVMSG ChanServ :VOICE %s\r\n", idNames[id]);
}
}
static void commandDevoice(uint id, char *params) {
if (!params) return;
channelListMode(id, '-', 'v', params);
channelListMode(id, '-', 'v', (params ?: self.nick));
}
static void commandBan(uint id, char *params) {