diff --git a/net/irssi-silc/Makefile b/net/irssi-silc/Makefile index 0d659c9493c..d6cf4035247 100644 --- a/net/irssi-silc/Makefile +++ b/net/irssi-silc/Makefile @@ -1,11 +1,11 @@ -# $OpenBSD: Makefile,v 1.18 2009/05/31 22:54:13 martynas Exp $ +# $OpenBSD: Makefile,v 1.19 2009/07/26 15:39:52 martynas Exp $ SHARED_ONLY= Yes COMMENT= SILC plugin for irssi DISTNAME= irssi-silc-1.1.7 -PKGNAME= ${DISTNAME}p2 +PKGNAME= ${DISTNAME}p3 CATEGORIES= net diff --git a/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_client_ops_c b/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_client_ops_c new file mode 100644 index 00000000000..dd4f949375b --- /dev/null +++ b/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_client_ops_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-apps_irssi_src_silc_core_client_ops_c,v 1.1 2009/07/26 15:39:52 martynas Exp $ +--- apps/irssi/src/silc/core/client_ops.c.orig Sat May 23 03:11:25 2009 ++++ apps/irssi/src/silc/core/client_ops.c Sun Jul 26 15:59:30 2009 +@@ -1069,6 +1069,8 @@ void silc_notify(SilcClient client, SilcClientConnecti + + nick = silc_nicklist_find(chanrec, client_entry2); + if (nick != NULL) { ++ strlcpy(nick->prefixes, (mode & SILC_CHANNEL_UMODE_CHANOP) ? "@" : "", ++ sizeof(nick->prefixes)); + nick->op = (mode & SILC_CHANNEL_UMODE_CHANOP) != 0; + nick->founder = (mode & SILC_CHANNEL_UMODE_CHANFO) != 0; + signal_emit("nick mode changed", 2, chanrec, nick); diff --git a/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_silc-nicklist_c b/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_silc-nicklist_c index 3a3135c0bfd..385aa26dfe1 100644 --- a/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_silc-nicklist_c +++ b/net/irssi-silc/patches/patch-apps_irssi_src_silc_core_silc-nicklist_c @@ -1,21 +1,15 @@ -$OpenBSD: patch-apps_irssi_src_silc_core_silc-nicklist_c,v 1.1 2009/05/31 22:54:13 martynas Exp $ +$OpenBSD: patch-apps_irssi_src_silc_core_silc-nicklist_c,v 1.2 2009/07/26 15:39:52 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 * ++++ apps/irssi/src/silc/core/silc-nicklist.c Sun Jul 26 15:52:06 2009 +@@ -47,8 +47,10 @@ 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) { + 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);