im.pidgin.pidgin: 97d1b7b877f540627989e1d55c78591fae5fc467
nosnilmot at pidgin.im
nosnilmot at pidgin.im
Tue Feb 26 09:36:18 EST 2008
-----------------------------------------------------------------
Revision: 97d1b7b877f540627989e1d55c78591fae5fc467
Ancestor: 28c88b669dfc47aca88a5e7923fc4746047d8f48
Author: nosnilmot at pidgin.im
Date: 2008-02-26T14:17:12
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/97d1b7b877f540627989e1d55c78591fae5fc467
Modified files:
libpurple/protocols/irc/msgs.c
ChangeLog:
Give IRC channel owners the founder icon on networks that report supporting
the '~' mode char. Fixes #4773
-------------- next part --------------
============================================================
--- libpurple/protocols/irc/msgs.c 37fdc7040037099b9ca7ec8d1017b3426caccbd6
+++ libpurple/protocols/irc/msgs.c 76e6395bef71aa519327f57dbf3fd688424c2858
@@ -495,6 +495,8 @@ void irc_msg_names(struct irc_conn *irc,
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,
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;
More information about the Commits
mailing list