From 89cd47bf3a937c3077acdc95d98cc4b389e30608 Mon Sep 17 00:00:00 2001 From: Jilles Tjoelker Date: Fri, 28 Nov 2008 00:16:51 +0000 Subject: Allow storing multiple "other" prefixes such as +q and +a. Original patch by JasonX, somewhat changed by exg and me. git-svn-id: file:///var/www/svn.irssi.org/SVN/irssi/trunk@4922 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/perl/perl-common.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/perl') diff --git a/src/perl/perl-common.c b/src/perl/perl-common.c index 517e6102..e13c2cf3 100644 --- a/src/perl/perl-common.c +++ b/src/perl/perl-common.c @@ -432,7 +432,8 @@ void perl_nick_fill_hash(HV *hv, NICK_REC *nick) hv_store(hv, "op", 2, newSViv(nick->op), 0); hv_store(hv, "halfop", 6, newSViv(nick->halfop), 0); hv_store(hv, "voice", 5, newSViv(nick->voice), 0); - hv_store(hv, "other", 5, newSViv(nick->other), 0); + hv_store(hv, "other", 5, newSViv(nick->prefixes[0]), 0); + hv_store(hv, "prefixes", 8, new_pv(nick->prefixes), 0); hv_store(hv, "last_check", 10, newSViv(nick->last_check), 0); hv_store(hv, "send_massjoin", 13, newSViv(nick->send_massjoin), 0); -- cgit v1.2.3