new irssi has this whole new interface for prefix management; so

make it use @ for silc op/founder so you can have your ops back
tested, reported & ok sthen@
This commit is contained in:
martynas 2009-05-31 22:54:13 +00:00
parent 18c821a039
commit 90d7bc741e
2 changed files with 23 additions and 2 deletions

View File

@ -1,11 +1,11 @@
# $OpenBSD: Makefile,v 1.17 2009/05/23 17:51:14 martynas Exp $
# $OpenBSD: Makefile,v 1.18 2009/05/31 22:54:13 martynas Exp $
SHARED_ONLY= Yes
COMMENT= SILC plugin for irssi
DISTNAME= irssi-silc-1.1.7
PKGNAME= ${DISTNAME}p1
PKGNAME= ${DISTNAME}p2
CATEGORIES= net

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-apps_irssi_src_silc_core_silc-nicklist_c,v 1.1 2009/05/31 22:54:13 martynas Exp $
--- apps/irssi/src/silc/core/silc-nicklist.c.orig Sat May 23 03:11:25 2009
+++ apps/irssi/src/silc/core/silc-nicklist.c Mon Jun 1 00:48:28 2009
@@ -47,10 +47,15 @@ SILC_NICK_REC *silc_nicklist_insert(SILC_CHANNEL_REC *
rec->silc_user = user;
rec->unique_id = user->client;
- if (user->mode & SILC_CHANNEL_UMODE_CHANOP)
+
+ if (user->mode & SILC_CHANNEL_UMODE_CHANOP) {
rec->op = TRUE;
- if (user->mode & SILC_CHANNEL_UMODE_CHANFO)
+ strlcpy(rec->prefixes, "@", sizeof(rec->prefixes));
+ }
+ if (user->mode & SILC_CHANNEL_UMODE_CHANFO) {
rec->founder = TRUE;
+ strlcpy(rec->prefixes, "@", sizeof(rec->prefixes));
+ }
rec->send_massjoin = send_massjoin;
nicklist_insert(CHANNEL(channel), (NICK_REC *) rec);