summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--handle.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/handle.c b/handle.c
index d268d14..f49ed3b 100644
--- a/handle.c
+++ b/handle.c
@@ -553,6 +553,14 @@ static void handleMode(struct Message *msg) {
 	}
 }
 
+static void handleErrorChanopPrivsNeeded(struct Message *msg) {
+	require(msg, false, 3);
+	uiFormat(
+		idFor(msg->params[1]), Cold, tagTime(msg),
+		"%s", msg->params[2]
+	);
+}
+
 static void handleErrorUserNotInChannel(struct Message *msg) {
 	require(msg, false, 4);
 	uiFormat(
@@ -886,6 +894,7 @@ static const struct Handler {
 	{ "441", handleErrorUserNotInChannel },
 	{ "443", handleErrorUserOnChannel },
 	{ "478", handleErrorBanListFull },
+	{ "482", handleErrorChanopPrivsNeeded },
 	{ "671", handleReplyWhoisGeneric },
 	{ "900", handleReplyLoggedIn },
 	{ "904", handleErrorSASLFail },
Lukas Fleischer 2013-04-10tests/: Do not use `sed -i`Lukas Fleischer 2013-04-10Add branch-sort and repo.branch-sort options.Jason A. Donenfeld 2013-04-10t0109: chain operations with &&John Keeping 2013-04-10cgit.c: Do not restore unset environment variablesLukas Fleischer 2013-04-09t0107: Use `tar -z` for gzip'ed archivesLukas Fleischer