diff options
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); |