Add /nick
parent
58e1d5b4e2
commit
55173ef297
|
@ -130,6 +130,8 @@ can be typed
|
||||||
Join a channel.
|
Join a channel.
|
||||||
.It Ic /me Op Ar action
|
.It Ic /me Op Ar action
|
||||||
Send an action message.
|
Send an action message.
|
||||||
|
.It Ic /nick Ar nick
|
||||||
|
Change nicknames.
|
||||||
.It Ic /notice Ar message
|
.It Ic /notice Ar message
|
||||||
Send a notice.
|
Send a notice.
|
||||||
.It Ic /quit Op Ar message
|
.It Ic /quit Op Ar message
|
||||||
|
|
|
@ -69,6 +69,12 @@ static void commandQuit(size_t id, char *params) {
|
||||||
set(&self.quit, (params ? params : "Goodbye"));
|
set(&self.quit, (params ? params : "Goodbye"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void commandNick(size_t id, char *params) {
|
||||||
|
(void)id;
|
||||||
|
if (!params) return;
|
||||||
|
ircFormat("NICK :%s\r\n", params);
|
||||||
|
}
|
||||||
|
|
||||||
static void commandWindow(size_t id, char *params) {
|
static void commandWindow(size_t id, char *params) {
|
||||||
if (!params) return;
|
if (!params) return;
|
||||||
if (isdigit(params[0])) {
|
if (isdigit(params[0])) {
|
||||||
|
@ -85,6 +91,7 @@ static const struct Handler {
|
||||||
} Commands[] = {
|
} Commands[] = {
|
||||||
{ "/join", commandJoin },
|
{ "/join", commandJoin },
|
||||||
{ "/me", commandMe },
|
{ "/me", commandMe },
|
||||||
|
{ "/nick", commandNick },
|
||||||
{ "/notice", commandNotice },
|
{ "/notice", commandNotice },
|
||||||
{ "/quit", commandQuit },
|
{ "/quit", commandQuit },
|
||||||
{ "/quote", commandQuote },
|
{ "/quote", commandQuote },
|
||||||
|
|
Loading…
Reference in New Issue