summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-common-core.c
diff options
context:
space:
mode:
authorEmanuele Giaquinta <exg@irssi.org>2007-05-24 00:44:29 +0000
committerexg <exg@dbcabf3a-b0e7-0310-adc4-f8d773084564>2007-05-24 00:44:29 +0000
commit24bf34c6ca0118041addd8a3de060bae2246a49d (patch)
treee4abc6931a84b29636cdefbba67fcbf96d705bc5 /src/fe-common/core/fe-common-core.c
parent841cd8d0cf7767eae63300bbf5f98ebe65b02a71 (diff)
downloadirssi-24bf34c6ca0118041addd8a3de060bae2246a49d.zip
Move 'version' option in main.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@4511 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-common-core.c')
-rw-r--r--src/fe-common/core/fe-common-core.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/fe-common/core/fe-common-core.c b/src/fe-common/core/fe-common-core.c
index 688f40df..85d66b89 100644
--- a/src/fe-common/core/fe-common-core.c
+++ b/src/fe-common/core/fe-common-core.c
@@ -24,7 +24,6 @@
#include "misc.h"
#include "levels.h"
#include "settings.h"
-#include "irssi-version.h"
#ifdef HAVE_NL_LANGINFO
# include <langinfo.h>
#endif
@@ -99,13 +98,6 @@ void window_commands_deinit(void);
static void sig_setup_changed(void);
-static void print_version(void)
-{
- printf(PACKAGE" " IRSSI_VERSION" (%d %04d)\n",
- IRSSI_VERSION_DATE, IRSSI_VERSION_TIME);
- exit(0);
-}
-
static void sig_connected(SERVER_REC *server)
{
MODULE_DATA_SET(server, g_new0(MODULE_SERVER_REC, 1));
@@ -133,14 +125,7 @@ static void sig_channel_destroyed(CHANNEL_REC *channel)
void fe_common_core_register_options(void)
{
- static struct poptOption version_options[] = {
- { NULL, '\0', POPT_ARG_CALLBACK, (void *)&print_version, '\0', NULL },
- { "version", 'v', POPT_ARG_NONE, NULL, 0, "Display irssi version" },
- { NULL, '\0', 0, NULL }
- };
-
static struct poptOption options[] = {
- { NULL, '\0', POPT_ARG_INCLUDE_TABLE, version_options, 0, NULL, NULL },
POPT_AUTOHELP
{ "connect", 'c', POPT_ARG_STRING, &autocon_server, 0, "Automatically connect to server/network", "SERVER" },
{ "password", 'w', POPT_ARG_STRING, &autocon_password, 0, "Autoconnect password", "PASSWORD" },