Mercurial > pidgin
changeset 22340:208780a99083
Give IRC channel owners the founder icon on networks that report supporting
the '~' mode char. Fixes #4773
author | Stu Tomlinson <stu@nosnilmot.com> |
---|---|
date | Tue, 26 Feb 2008 14:17:12 +0000 |
parents | b630d1d4d64f |
children | 981169c12d12 |
files | libpurple/protocols/irc/msgs.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/irc/msgs.c Tue Feb 26 14:11:59 2008 +0000 +++ b/libpurple/protocols/irc/msgs.c Tue Feb 26 14:17:12 2008 +0000 @@ -495,6 +495,8 @@ cur++; } else if(irc->mode_chars && strchr(irc->mode_chars, *cur)) { + if (*cur == '~') + f = PURPLE_CBFLAGS_FOUNDER; cur++; } tmp = g_strndup(cur, end - cur); @@ -854,6 +856,9 @@ newflag = PURPLE_CBFLAGS_HALFOP; else if (*mcur == 'v') newflag = PURPLE_CBFLAGS_VOICE; + else if(irc->mode_chars + && strchr(irc->mode_chars, '~') && (*mcur == 'q')) + newflag = PURPLE_CBFLAGS_FOUNDER; if (newflag) { if (add) flags |= newflag;