Handle ERR_CHANOPRIVSNEEDED

weechat-hashes
C. McEnroe 2020-02-20 05:04:58 -05:00
parent 50a6d34a55
commit 9609723dc6
1 changed files with 9 additions and 0 deletions

View File

@ -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) { static void handleErrorUserNotInChannel(struct Message *msg) {
require(msg, false, 4); require(msg, false, 4);
uiFormat( uiFormat(
@ -886,6 +894,7 @@ static const struct Handler {
{ "441", handleErrorUserNotInChannel }, { "441", handleErrorUserNotInChannel },
{ "443", handleErrorUserOnChannel }, { "443", handleErrorUserOnChannel },
{ "478", handleErrorBanListFull }, { "478", handleErrorBanListFull },
{ "482", handleErrorChanopPrivsNeeded },
{ "671", handleReplyWhoisGeneric }, { "671", handleReplyWhoisGeneric },
{ "900", handleReplyLoggedIn }, { "900", handleReplyLoggedIn },
{ "904", handleErrorSASLFail }, { "904", handleErrorSASLFail },