Now Irssi SILC client prints channel user modes etc. on the
statusbar.
+ * The user mode (like server/router operator changes) is now shown
+ on the Irssi SILC client's statusbar. The affected files are
+ irssi/src/silc/core/client_ops.c, silc-expandos.c.
+
Thu Mar 7 19:21:22 EET 2002 Pekka Riikonen <priikone@silcnet.org>
* Changed silc_mutex_[un]lock calls in lib/silcutil/silcschedule.c
keys is not possible because changing the key is not possible by the
user.
- o Add the server/router operator info to the statusbar.
-
o /cumode for unknown nick does not give any error message.
# treated "normally", you could change the time/user name to whatever
time = "{sb $Z}";
- user = "{sb $cumode$N{sbmode $usermode}{sbaway $A}}";
+ user = "{sb $cumode$N{sbaway $A}}";
+ usermode = " {sbmode $usermode}";
topic = " $topic";
# treated specially .. window is printed with non-empty windows,
window_empty = { };
lag = { priority = "-1"; };
act = { priority = "10"; };
- more = { priority = "-1"; alignment = "right"; };
+ usermode = { priority = "-1"; };
+ more = { priority = "10"; alignment = "right"; };
barend = { priority = "100"; alignment = "right"; };
};
};
MSGLEVEL_CRAP, SILCTXT_ROUTER_OPER);
server->umode = mode;
+ signal_emit("user mode changed", 2, server, NULL);
}
break;
if (!success)
return;
+ server->umode |= SILC_UMODE_SERVER_OPERATOR;
+ signal_emit("user mode changed", 2, server, NULL);
+
printformat_module("fe-common/silc", server, NULL,
MSGLEVEL_CRAP, SILCTXT_SERVER_OPER);
break;
if (!success)
return;
+ server->umode |= SILC_UMODE_ROUTER_OPERATOR;
+ signal_emit("user mode changed", 2, server, NULL);
+
printformat_module("fe-common/silc", server, NULL,
MSGLEVEL_CRAP, SILCTXT_ROUTER_OPER);
break;
static char *expando_usermode(SERVER_REC *server, void *item, int *free_ret)
{
- return "";
+ SILC_SERVER_REC *s = SILC_SERVER(server);
+
+ if (!s)
+ return "";
+
+ return (s->umode & SILC_UMODE_SERVER_OPERATOR) ? "Server Operator" :
+ (s->umode & SILC_UMODE_ROUTER_OPERATOR) ? "Router Operator" : "";
}
/* Expands to your usermode on channel */