Implemented CHANNEL_UMODE_QUEIT mode. Fixed fatal bugs in server.
[silc.git] / apps / irssi / src / silc / core / silc-channels.c
index 97c0c8f4d9ab9f67a3975dfb82ebf086202da440..9c66e1f17796e4fbce080bb0d92a4de8f051eb63 100644 (file)
@@ -331,6 +331,7 @@ 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);
@@ -338,6 +339,7 @@ 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;
   }
 
   signal_emit("away mode changed", 1, server);