diff options
author | Timo Sirainen <cras@irssi.org> | 2002-03-10 15:20:44 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-03-10 15:20:44 +0000 |
commit | 0d54e4e299b78916a12411f6e4e80dd3cf420bde (patch) | |
tree | 314b73b1df71d193a6e286e090ef609869d068cc /src/fe-text | |
parent | ee8229be487df091882166d4c6a64d13caf02f4a (diff) | |
download | irssi-0d54e4e299b78916a12411f6e4e80dd3cf420bde.zip |
SIGHUP now does /RELOAD - useful with for example /SBAR prompt DISABLE when
you don't have an input line to recover :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2556 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r-- | src/fe-text/irssi.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/fe-text/irssi.c b/src/fe-text/irssi.c index 76ab2d74..ca1d735b 100644 --- a/src/fe-text/irssi.c +++ b/src/fe-text/irssi.c @@ -348,7 +348,14 @@ int main(int argc, char **argv) can call our dirty-checker after each iteration */ while (!quitting) { g_main_iteration(TRUE); - dirty_check(); + + if (reload_config) { + /* SIGHUP received, do /RELOAD */ + reload_config = FALSE; + signal_emit("command reload", 1, ""); + } + + dirty_check(); } g_main_destroy(main_loop); |