summary refs log tree commit diff
path: root/chat.c
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-10 00:01:35 -0400
committerJune McEnroe <june@causal.agency>2018-08-10 00:01:35 -0400
commit1a9ae050d62dd56f285b59d3952f1dabe186ea9c (patch)
tree407deaabd88b9db6cb1bcc37cc651efe666cc0bf /chat.c
parentAdd -u option for setting user (diff)
downloadcatgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.tar.gz
catgirl-1a9ae050d62dd56f285b59d3952f1dabe186ea9c.zip
Rename chan to join
In preparation for multi-channel?
Diffstat (limited to '')
-rw-r--r--chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/chat.c b/chat.c
index 12e4899..41fc3cb 100644
--- a/chat.c
+++ b/chat.c
@@ -63,7 +63,7 @@ int main(int argc, char *argv[]) {
 		switch (opt) {
 			break; case 'W': webirc = optarg;
 			break; case 'h': host = strdup(optarg);
-			break; case 'j': chat.chan = strdup(optarg);
+			break; case 'j': chat.join = strdup(optarg);
 			break; case 'n': chat.nick = strdup(optarg);
 			break; case 'p': port = optarg;
 			break; case 'u': chat.user = strdup(optarg);
@@ -74,7 +74,7 @@ int main(int argc, char *argv[]) {
 	}
 
 	if (!host) host = prompt("Host: ");
-	if (!chat.chan) chat.chan = prompt("Join: ");
+	if (!chat.join) chat.join = prompt("Join: ");
 	if (!chat.nick) chat.nick = prompt("Name: ");
 	if (!chat.user) chat.user = strdup(chat.nick);