Simplify invalid nick messages

master
Curtis McEnroe 2018-09-02 00:13:27 -04:00
parent e5f0c63e7f
commit 359b08b335
No known key found for this signature in database
GPG Key ID: CEA2F97ADCFCD77C
1 changed files with 2 additions and 4 deletions

View File

@ -125,10 +125,8 @@ static void handlePing(char *prefix, char *params) {
static void handleReplyErroneousNickname(char *prefix, char *params) { static void handleReplyErroneousNickname(char *prefix, char *params) {
char *mesg; char *mesg;
shift(prefix, NULL, NULL, NULL, params, 3, 0, NULL, NULL, &mesg); shift(prefix, NULL, NULL, NULL, params, 3, 0, NULL, NULL, &mesg);
// FIXME: Better formatting. uiFmt(TAG_STATUS, UI_HOT, "You can't use that name here: \"%s\"", mesg);
uiLog(TAG_STATUS, UI_HOT, L"You can't use that name here"); uiLog(TAG_STATUS, UI_COLD, L"Type /nick <name> to choose a new one");
uiFmt(TAG_STATUS, UI_HOT, "Sheriff says, \"%s\"", mesg);
uiLog(TAG_STATUS, UI_HOT, L"Type /nick <name> to choose a new one");
} }
static void handleReplyWelcome(char *prefix, char *params) { static void handleReplyWelcome(char *prefix, char *params) {