# HG changeset patch # User Stu Tomlinson # Date 1204035432 0 # Node ID 208780a990830cb3cabd2e129b8f6833d714cb85 # Parent b630d1d4d64f19faa96e8556c9e0958eee807756 Give IRC channel owners the founder icon on networks that report supporting the '~' mode char. Fixes #4773 diff -r b630d1d4d64f -r 208780a99083 libpurple/protocols/irc/msgs.c --- 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;