Handle nick errors
parent
7baaff0777
commit
fc5bf09c46
12
chat.c
12
chat.c
|
@ -260,6 +260,16 @@ static void handlePing(char *prefix, char *params) {
|
||||||
clientFmt("PONG %s\r\n", params);
|
clientFmt("PONG %s\r\n", params);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void handle432(char *prefix, char *params) {
|
||||||
|
(void)prefix;
|
||||||
|
shift(¶ms);
|
||||||
|
shift(¶ms);
|
||||||
|
char *mesg = shift(¶ms);
|
||||||
|
uiFmt("You can't use that name here");
|
||||||
|
uiFmt("Sheriff says, \"%s\"", mesg);
|
||||||
|
uiFmt("Type /nick <name> to choose a new one");
|
||||||
|
}
|
||||||
|
|
||||||
static void handle001(char *prefix, char *params) {
|
static void handle001(char *prefix, char *params) {
|
||||||
(void)prefix;
|
(void)prefix;
|
||||||
char *nick = shift(¶ms);
|
char *nick = shift(¶ms);
|
||||||
|
@ -416,6 +426,8 @@ static const struct {
|
||||||
{ "332", handle332 },
|
{ "332", handle332 },
|
||||||
{ "352", handle352 },
|
{ "352", handle352 },
|
||||||
{ "366", handle366 },
|
{ "366", handle366 },
|
||||||
|
{ "432", handle432 },
|
||||||
|
{ "433", handle432 },
|
||||||
{ "JOIN", handleJoin },
|
{ "JOIN", handleJoin },
|
||||||
{ "KICK", handleKick },
|
{ "KICK", handleKick },
|
||||||
{ "NICK", handleNick },
|
{ "NICK", handleNick },
|
||||||
|
|
Loading…
Reference in New Issue