Mercurial > ~mikael > mcabber > hg
comparison mcabber/src/main.c @ 315:65aa05520556
First Ctrl-C now also leaves multi-line message mode
* First Ctrl-C does a "/msay abort" command
* Remove debug stuff
* "/msay abort" displays a message when leaving multi-line mode
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Fri, 15 Jul 2005 10:56:15 +0100 |
parents | 1ceb68eb2fc1 |
children | 33b8e801ffa6 |
comparison
equal
deleted
inserted
replaced
314:1ceb68eb2fc1 | 315:65aa05520556 |
---|---|
122 /* Terminate if 2 consecutive SIGTERMs */ | 122 /* Terminate if 2 consecutive SIGTERMs */ |
123 if (now - LastSigtermTime < 2) | 123 if (now - LastSigtermTime < 2) |
124 mcabber_disconnect("Killed by SIGINT"); | 124 mcabber_disconnect("Killed by SIGINT"); |
125 LastSigtermTime = now; | 125 LastSigtermTime = now; |
126 signal(SIGINT, sig_handler); | 126 signal(SIGINT, sig_handler); |
127 scr_handle_sigint(); | |
127 scr_LogPrint("Hit Ctrl-C twice to leave mcabber"); | 128 scr_LogPrint("Hit Ctrl-C twice to leave mcabber"); |
128 scr_handle_sigint(); | |
129 } else { | 129 } else { |
130 ut_WriteLog("Caught signal: %d\n", signum); | 130 ut_WriteLog("Caught signal: %d\n", signum); |
131 } | 131 } |
132 } | 132 } |
133 | 133 |