diff options
author | Stu Tomlinson <nosnilmot@pidgin.im> | 2008-02-26 14:17:12 +0000 |
---|---|---|
committer | Stu Tomlinson <nosnilmot@pidgin.im> | 2008-02-26 14:17:12 +0000 |
commit | 5a1c81211d9431fbcf7da06cb758bcd99a56c53d (patch) | |
tree | 0dd5f612830aa578ea827fb0d242903feb553ac1 | |
parent | e9a0e78b3ba53875bd3b8de9292e0717987c3349 (diff) | |
download | pidgin-5a1c81211d9431fbcf7da06cb758bcd99a56c53d.tar.gz |
Give IRC channel owners the founder icon on networks that report supporting
the '~' mode char. Fixes #4773
-rw-r--r-- | libpurple/protocols/irc/msgs.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libpurple/protocols/irc/msgs.c b/libpurple/protocols/irc/msgs.c index 8e46db2969..f9f1048e4e 100644 --- a/libpurple/protocols/irc/msgs.c +++ b/libpurple/protocols/irc/msgs.c @@ -495,6 +495,8 @@ void irc_msg_names(struct irc_conn *irc, const char *name, const char *from, cha 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 @@ void irc_msg_mode(struct irc_conn *irc, const char *name, const char *from, char 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; |