Synthesize a QUIT message to handle on exit

So that the end of a saved buffer contains the self quit.
master
C. McEnroe 2020-02-10 20:06:25 -05:00
parent 99480a42e5
commit babd3b0a6c
1 changed files with 8 additions and 0 deletions

8
chat.c
View File

@ -247,5 +247,13 @@ int main(int argc, char *argv[]) {
} else {
ircFormat("QUIT\r\n");
}
struct Message msg = {
.nick = self.nick,
.user = self.user,
.cmd = "QUIT",
.params[0] = self.quit,
};
handle(msg);
uiHide();
}