diff options
| author | C. McEnroe | 2020-02-20 05:04:58 -0500 | 
|---|---|---|
| committer | C. McEnroe | 2020-02-20 05:04:58 -0500 | 
| commit | 9609723dc641957d10ecc9fa725743b1dc71644c (patch) | |
| tree | ebaf912bf26877acef7162937313fa28bf859a3c /handle.c | |
| parent | 50a6d34a5583f5f867efeac8116ab1b6cc33abe0 (diff) | |
Handle ERR_CHANOPRIVSNEEDED
Diffstat (limited to 'handle.c')
| -rw-r--r-- | handle.c | 9 | 
1 files changed, 9 insertions, 0 deletions
| @@ -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 }, | 
