Tue Jan 4 13:06:26 CET 2005 Jochen Eisinger <jochen@penguin-breeder.org>
authorJochen Eisinger <coffee@silcnet.org>
Tue, 4 Jan 2005 12:13:17 +0000 (12:13 +0000)
committerJochen Eisinger <coffee@silcnet.org>
Tue, 4 Jan 2005 12:13:17 +0000 (12:13 +0000)
* Take over command line options into silcclient data structure.
  Affected file irssi/src/silc/core/silc-core.c

CHANGES
apps/irssi/src/silc/core/silc-core.c

diff --git a/CHANGES b/CHANGES
index e89ef86584cba7da424bf230f5f2ee26660d0bd2..7001bd5b9750199af8a5eea3f864f670bd15fc28 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,13 @@
+Tue Jan  4 13:06:26 CET 2005  Jochen Eisinger <jochen@penguin-breeder.org>
+
+       * Adopt configuration toolchain to current auto-tools.
+         Affected files prepare, irssi/configure.in
+       * Revert most of the UTF-8 fixes to SILC Client 1.0.1.  Will
+         redo that.  Affected files irssi/src/silc/core/client_ops.c,
+         irssi/src/fe-common/silc/fe-silc-channels.c
+       * Take over command line options into silcclient data structure.
+         Affected file irssi/src/silc/core/silc-core.c
+
 Wed Dec  8 16:15:11 CET 2004  Pekka Riikonen <priikone@silcnet.org>
 
        * Do not try to initiate backup resuming protocol forever.
index 709966ab991053f437f18f3f064c5d26a887609f..e61e1c1d023ae4ce8826bb35c19565a511685d52 100644 (file)
@@ -262,6 +262,16 @@ void silc_opt_callback(poptContext con,
                       const struct poptOption *opt,
                       const char *arg, void *data)
 {
+  if (strcmp(opt->longName, "nick") == 0) {
+    g_free(silc_client->nickname);  
+    silc_client->nickname = g_strdup(arg);
+  }
+
+  if (strcmp(opt->longName, "hostname") == 0) {
+    silc_free(silc_client->hostname);  
+    silc_client->hostname = g_strdup(arg);
+  }
+
   if (strcmp(opt->longName, "list-ciphers") == 0) {
     silc_cipher_register_default();
     silc_client_list_ciphers();