+Thu Mar 14 13:38:12 EET 2002 Timo Sirainen <tss@iki.fi>
+
+ * $usermode, $cumode and $cumode_space expandos shouldn't do
+ anything with non-SILC server records. Affected file
+ irssi/src/silc/core/silc-expandos.c
+
Wed Mar 13 21:38:26 EET 2002 Pekka Riikonen <priikone@silcnet.org>
* Fixed the silc_net_check_[host/local]_by_sock to support
static char *expando_cumode(SERVER_REC *server, void *item, int *free_ret)
{
- if (IS_CHANNEL(item) && CHANNEL(item)->ownnick) {
+ if (IS_SILC_CHANNEL(item) && CHANNEL(item)->ownnick) {
SILC_NICK_REC *nick = (SILC_NICK_REC *)CHANNEL(item)->ownnick;
return (nick->op && nick->founder) ? "*@" :
nick->op ? "@" : nick->founder ? "*" : "";
static char *expando_cumode_space(SERVER_REC *server, void *item,
int *free_ret)
{
- char *ret = expando_cumode(server, item, free_ret);
+ char *ret;
+
+ if (!IS_SILC_SERVER(server))
+ return "";
+
+ ret = expando_cumode(server, item, free_ret);
return *ret == '\0' ? " " : ret;
}