updates.
authorPekka Riikonen <priikone@silcnet.org>
Sun, 16 Jun 2002 07:35:23 +0000 (07:35 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Sun, 16 Jun 2002 07:35:23 +0000 (07:35 +0000)
apps/irssi/src/silc/core/silc-channels.c
lib/silcclient/client_channel.c
lib/silccrypt/silchash.c
lib/silccrypt/silchash.h
prepare

index 9c66e1f17796e4fbce080bb0d92a4de8f051eb63..3aab164ed7b2f5d7e9580f7473516b5a8201e3da 100644 (file)
@@ -331,7 +331,6 @@ static void command_away(const char *data, SILC_SERVER_REC *server,
 
     printformat_module("fe-common/silc", server, NULL, MSGLEVEL_CRAP, 
                       SILCTXT_UNSET_AWAY);
-    server->usermode_away = FALSE;
   } else {
     /* Set the away message */
     silc_client_set_away_message(silc_client, server->conn, (char *)data);
@@ -339,9 +338,11 @@ static void command_away(const char *data, SILC_SERVER_REC *server,
 
     printformat_module("fe-common/silc", server, NULL, MSGLEVEL_CRAP, 
                       SILCTXT_SET_AWAY, data);
-    server->usermode_away = TRUE;
   }
 
+  server->usermode_away = set;
+  if (set)
+    server->away_reason = g_strdup((char *)data);
   signal_emit("away mode changed", 1, server);
 
   silc_command_exec(server, "UMODE", set ? "+g" : "-g");
index c2ffe6630aaf32332bf6abc8bf6a49b53e4c512e..37e69d7176386d01736568329862601496da4d0a 100644 (file)
@@ -69,10 +69,8 @@ void silc_client_send_channel_message(SilcClient client,
       chu->mode & SILC_CHANNEL_UMODE_CHANOP &&
       !(chu->mode & SILC_CHANNEL_UMODE_CHANFO))
     return;
-#if 0
   if (chu->mode & SILC_CHANNEL_UMODE_QUIET)
     return;
-#endif
 
   /* Take the key to be used */
   if (channel->mode & SILC_CHANNEL_MODE_PRIVKEY) {
index 52419b0b296635091e1eff4b3cb2343d494242e3..ed9999a22c27425e6bd6078f7fa5e4cd1bbb6491 100644 (file)
@@ -1,16 +1,15 @@
 /*
 
-  silchash.c
+  silchash.c 
 
-  Author: Pekka Riikonen <priikone@poseidon.pspt.fi>
+  Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1997 - 2001 Pekka Riikonen
+  Copyright (C) 1997 - 2002 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
-  the Free Software Foundation; either version 2 of the License, or
-  (at your option) any later version.
-  
+  the Free Software Foundation; version 2 of the License.
+
   This program is distributed in the hope that it will be useful,
   but WITHOUT ANY WARRANTY; without even the implied warranty of
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
index b076d55f110e1c71dda133d6ed4797f3f2bc4d32..2de31aafa248586ffeb51e3f94a3b543d463a89b 100644 (file)
@@ -4,7 +4,7 @@
 
   Author: Pekka Riikonen <priikone@silcnet.org>
 
-  Copyright (C) 1999 - 2002 Pekka Riikonen
+  Copyright (C) 1997 - 2002 Pekka Riikonen
 
   This program is free software; you can redistribute it and/or modify
   it under the terms of the GNU General Public License as published by
@@ -101,16 +101,16 @@ extern DLLAPI const SilcHashObject silc_default_hash[];
 #define SILC_HASH_SIM_CONTEXT_LEN "context_len"
 
 /* Macros that can be used to declare SILC Hash API functions. */
-#define SILC_HASH_API_INIT(hash)               \
+#define SILC_HASH_API_INIT(hash)                                       \
 void silc_##hash##_init(void *context)
 #define SILC_HASH_API_UPDATE(hash)                                     \
 void silc_##hash##_update(void *context, const unsigned char *data,    \
                           SilcUInt32 len)
-#define SILC_HASH_API_FINAL(hash)                              \
+#define SILC_HASH_API_FINAL(hash)                                      \
 void silc_##hash##_final(void *context, unsigned char *digest)
 #define SILC_HASH_API_TRANSFORM(hash)                                  \
 void silc_##hash##_transform(SilcUInt32 *state,        const unsigned char *buffer)
-#define SILC_HASH_API_CONTEXT_LEN(hash)                \
+#define SILC_HASH_API_CONTEXT_LEN(hash)                                        \
 SilcUInt32 silc_##hash##_context_len()
 
 /* Prototypes */
@@ -396,7 +396,7 @@ char *silc_hash_fingerprint(SilcHash hash, const unsigned char *data,
  *
  * DESCRIPTION
  *
- *    Utility function which can be used to create a textual bableprint
+ *    Utility function which can be used to create a textual babbleprint
  *    out of the data indicated by `data' of length of `data_len' bytes.
  *    If `hash' is NULL then SHA1 hash function is used automatically.
  *    The caller must free the returned string.
diff --git a/prepare b/prepare
index 980f0d99a15a04f15d83c464030e81f8176cd18f..0ac00c370b1482e5f68d156ee7bfc9f1bd0f142d 100755 (executable)
--- a/prepare
+++ b/prepare
@@ -37,7 +37,7 @@
 # SILC Distribution versions. Set here or give the version on the command
 # line as argument.
 #
-SILC_VERSION=0.9.1                     # Base version
+SILC_VERSION=0.9.2                     # Base version
 
 #############################################################################