Skip to content

Commit ea5d48a

Browse files
author
Colin Stolley
committed
Updated readme, fix broken /quit
1 parent 712e772 commit ea5d48a

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

README.md

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ Usage
3939
-----
4040
From the command line:
4141
```
42-
usage: ircl [-h host] [-p port] [-l log file] [-n nick] [-k keyword] [-v]
42+
usage: ircl [-h host] [-p port] [-s] [-l log file] [-n nick] [-k password] [-v]
43+
44+
-s Enable SSL
45+
-v Verbose
4346
```
4447

4548
The following commands (each beginning with the usual "/") are supported:
@@ -48,14 +51,23 @@ The following commands (each beginning with the usual "/") are supported:
4851
h help - display this message
4952
j join - JOIN <channel>
5053
p part - PART [<channel>]
54+
l last - replay last messages from <channel>
5155
m msg - PRIVMSG <channel or nick> <msg>
5256
a me - ACTION <msg>
53-
s switch - change channel to <channel> or list channels
57+
s switch - change channel to <channel> or list channels and return to default
5458
w who - WHO [<channel>]
5559
W whoa - WHO *
5660
Q quit - quit
5761
```
5862

63+
Upon successful login, you enter the `ircl% ` channel, which is a command-only channel.
64+
65+
- To join a room, use the `/j` command.
66+
- To send a message to a user or channel, just start typing the name
67+
and hit TAB. Then enter the message.
68+
- To direct all outgoing messages to a particular user or channel, use
69+
`/s` to switch the default channel.
70+
5971
Screen Snapshot
6072
---------------
6173
![](https://github.com/ccstolley/misc/blob/master/img/ircl_snap.png)
@@ -68,8 +80,7 @@ Stop by #ircl on irc.foonetic.net and ask your question!
6880
Future plans
6981
------------
7082

71-
- add command scripting
72-
- support a `/last` command
73-
- improved internal management of nicks and tab-completion
74-
- editline/libedit support
83+
- replace libreadline with editline/libedit/linenoise
84+
- improved internal management of nicks, tab-completion and message history
85+
- command scripting
7586
- who knows? Lodge an issue if you have ideas!

ircl.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ handle_help() {
399399
"\tl last - replay last messages from <channel>\n"
400400
"\tm msg - PRIVMSG <channel or nick> <msg>\n"
401401
"\ta me - ACTION <msg>\n"
402-
"\ts switch - change channel to <channel> or list channels\n"
402+
"\ts switch - change channel to <channel> or list channels and return to default\n"
403403
"\tw who - WHO [<channel>]\n"
404404
"\tW whoa - WHO *\n"
405405
"\tQ quit - quit\n"
@@ -522,6 +522,7 @@ handle_switch(const char* args) {
522522
static void
523523
handle_quit() {
524524
sout("QUIT Peace.");
525+
exit(0);
525526
}
526527

527528
static void
@@ -793,7 +794,7 @@ main(int argc, char *argv[]) {
793794
if(++i < argc) initialize_logging(argv[i]);
794795
break;
795796
default:
796-
eprint("usage: ircl [-h host] [-p port] [-s] [-l log file] [-n nick] [-k keyword] [-v]\n");
797+
eprint("usage: ircl [-h host] [-p port] [-s] [-l log file] [-n nick] [-k password] [-v]\n");
797798
}
798799
}
799800
if (!log_file_path) {

0 commit comments

Comments
 (0)