summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-11-30 18:06:43 -0500
committerJune McEnroe <june@causal.agency>2018-11-30 18:06:43 -0500
commit9d769111aef9a3e6148bf8205c3556cc0c5a46a9 (patch)
tree608ba62c47d2a139159ae384bf34f870fdcd41fb /chat.h
parentMeasure length of log timestamp more consistently (diff)
downloadcatgirl-9d769111aef9a3e6148bf8205c3556cc0c5a46a9.tar.gz
catgirl-9d769111aef9a3e6148bf8205c3556cc0c5a46a9.zip
Separate ircConnect and ircDisconnect
Diffstat (limited to '')
-rw-r--r--chat.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/chat.h b/chat.h
index 912bc90..f0d396d 100644
--- a/chat.h
+++ b/chat.h
@@ -43,7 +43,7 @@ void selfJoin(const char *join);
 
 void eventWait(const char *argv[static 2]);
 void eventPipe(const char *argv[static 2]);
-void eventLoop(int ui, int irc);
+void eventLoop(void);
 
 struct Tag {
 	size_t id;
@@ -100,9 +100,9 @@ void handle(char *line);
 void input(struct Tag tag, char *line);
 void inputTab(void);
 
-int ircConnect(
-	const char *host, const char *port, const char *pass, const char *webPass
-);
+void ircInit(char *host, char *port, char *pass, char *webPass);
+int ircConnect(void);
+void ircDisconnect(const char *quit);
 void ircRead(void);
 void ircWrite(const char *ptr, size_t len);
 void ircFmt(const char *format, ...) __attribute__((format(printf, 1, 2)));