diff options
author | Emanuele Giaquinta <exg@irssi.org> | 2007-05-24 00:25:36 +0000 |
---|---|---|
committer | exg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2007-05-24 00:25:36 +0000 |
commit | 841cd8d0cf7767eae63300bbf5f98ebe65b02a71 (patch) | |
tree | 5f80b018fee2d85498d174c663b03cef8043311c /src/core/session.c | |
parent | afa4292466c6de093d0cdf359a91160886933507 (diff) | |
download | irssi-841cd8d0cf7767eae63300bbf5f98ebe65b02a71.zip |
Cleanup option handling.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4510 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/core/session.c')
-rw-r--r-- | src/core/session.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core/session.c b/src/core/session.c index d118e8f1..4b0773fc 100644 --- a/src/core/session.c +++ b/src/core/session.c @@ -332,7 +332,7 @@ static void sig_init_finished(void) session_file = NULL; } -void session_init(void) +void session_register_options(void) { static struct poptOption options[] = { { "session", 0, POPT_ARG_STRING, &session_file, 0, "Used by /UPGRADE command", "PATH" }, @@ -341,7 +341,10 @@ void session_init(void) session_file = NULL; args_register(options); +} +void session_init(void) +{ command_bind("upgrade", NULL, (SIGNAL_FUNC) cmd_upgrade); signal_add("session save", (SIGNAL_FUNC) sig_session_save); |