Add /leave as an alias for /part
This commit is contained in:
parent
ef5c97ecac
commit
820ae7f855
2 changed files with 4 additions and 4 deletions
|
|
@ -128,7 +128,7 @@ instead.
|
|||
| --- | --- |
|
||||
| `/join #chan` | join a channel |
|
||||
| `/n [chan]` / `/names [chan]` | show a channel's nicklist (default: current window) |
|
||||
| `/part [#chan] [reason]` | leave the current or given channel |
|
||||
| `/part [#chan] [reason]` / `/leave [#chan] [reason]` | leave the current or given channel |
|
||||
| `/nick newnick` | change nickname |
|
||||
| `/msg nick text` | send a private message |
|
||||
| `/notice target text` | send a notice |
|
||||
|
|
|
|||
6
irc9.c
6
irc9.c
|
|
@ -1537,7 +1537,7 @@ static const char *const command_names[] = {
|
|||
"admin", "away", "ban", "clear", "close", "ctcp", "deop", "devoice",
|
||||
"help", "info", "invite", "join", "kick", "links", "list", "lusers",
|
||||
"me", "mode", "motd", "msg", "n", "names", "nick", "notice", "op",
|
||||
"part", "ping", "query", "quit", "raw", "reconnect", "stats", "time",
|
||||
"leave", "part", "ping", "query", "quit", "raw", "reconnect", "stats", "time",
|
||||
"topic", "unban", "version", "voice", "wc", "who", "whois"
|
||||
};
|
||||
|
||||
|
|
@ -1732,7 +1732,7 @@ static void do_command(char *line)
|
|||
if (!t) appendf(curwin, "* no such window: %s", name);
|
||||
}
|
||||
if (t) show_names(t);
|
||||
} else if (strcasecmp(cmd, "part") == 0) {
|
||||
} else if (strcasecmp(cmd, "part") == 0 || strcasecmp(cmd, "leave") == 0) {
|
||||
Window *t = input_target();
|
||||
char *chan = next_word(&q);
|
||||
if (!t || !t->srv) return;
|
||||
|
|
@ -1882,7 +1882,7 @@ static void do_command(char *line)
|
|||
quit_flag = 1;
|
||||
} else if (strcasecmp(cmd, "help") == 0) {
|
||||
Window *t = curwin ? curwin : server_window_owner()->windows;
|
||||
appendf(t, "commands: /join /part /nick /msg /me /whois /n /names");
|
||||
appendf(t, "commands: /join /part /leave /nick /msg /me /whois /n /names");
|
||||
appendf(t, " /away /topic /invite /kick /mode /notice /query");
|
||||
appendf(t, " /who /list /motd /time /version /admin /info");
|
||||
appendf(t, " /links /lusers /stats /ping /ctcp /op /deop");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue