Only exit on errorneous nick during registration

master
C. McEnroe 2020-02-12 19:30:07 -05:00
parent 05579773c8
commit be08880fac
1 changed files with 8 additions and 1 deletions

View File

@ -94,7 +94,14 @@ static void handleErrorNicknameInUse(struct Message *msg) {
static void handleErrorErroneousNickname(struct Message *msg) { static void handleErrorErroneousNickname(struct Message *msg) {
require(msg, false, 3); require(msg, false, 3);
if (!strcmp(self.nick, "*")) {
errx(EX_CONFIG, "%s: %s", msg->params[1], msg->params[2]); errx(EX_CONFIG, "%s: %s", msg->params[1], msg->params[2]);
} else {
uiFormat(
Network, Warm, tagTime(msg),
"%s: %s", msg->params[2], msg->params[1]
);
}
} }
static void handleCap(struct Message *msg) { static void handleCap(struct Message *msg) {