summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--catgirl.118
-rw-r--r--command.c10
2 files changed, 15 insertions, 13 deletions
diff --git a/catgirl.1 b/catgirl.1
index a3cec1a..5ec8db1 100644
--- a/catgirl.1
+++ b/catgirl.1
@@ -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
diff --git a/command.c b/command.c
index 91e2d66..b041e41 100644
--- a/command.c
+++ b/command.c
@@ -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) {
td>John Keeping 2015-08-13cgit.h: move stdbool.h from ui-shared.hJohn Keeping 2015-08-13cache.c: fix header orderJohn Keeping 2015-08-13configfile.c: don't include system headers directlyJohn Keeping 2015-08-13Remove redundant includesJohn Keeping 2015-08-13Makefile: include Git's config.mak.unameJohn Keeping 2015-08-13tests: allow shell to be overriddenJohn Keeping 2015-08-13redirect: cleanlinessJason A. Donenfeld 2015-08-13redirect: be more careful for different cgi setupsJason A. Donenfeld 2015-08-12ui-log: fix double countingJohn Keeping 2015-08-12log: allow users to follow a fileJohn Keeping 2015-08-12shared: make cgit_diff_tree_cb publicJohn Keeping 2015-08-12t0110: Chain together using &&Jason A. Donenfeld 2015-08-12about: always ensure page has a trailing slashJason A. Donenfeld 2015-08-12filters: apply HTML escapingLazaros Koromilas 2015-08-12git: update to v2.5.0Christian Hesse 2015-08-12Fix processing of repo.hide and repo.ignoreDaniel Reichelt