mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 04:43:34 +02:00
isupport patch by David Leadbeater
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3211 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3ccbd0405b
commit
217283caea
30 changed files with 520 additions and 133 deletions
|
|
@ -399,7 +399,9 @@ static void display_sorted_nicks(CHANNEL_REC *channel, GSList *nicklist)
|
|||
for (tmp = nicklist; tmp != NULL; tmp = tmp->next) {
|
||||
NICK_REC *rec = tmp->data;
|
||||
|
||||
if (rec->op)
|
||||
if (rec->other)
|
||||
nickmode[0] = rec->other;
|
||||
else if (rec->op)
|
||||
nickmode[0] = '@';
|
||||
else if (rec->halfop)
|
||||
nickmode[0] = '%';
|
||||
|
|
|
|||
|
|
@ -116,12 +116,19 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text)
|
|||
static char *channel_get_nickmode_rec(NICK_REC *nickrec)
|
||||
{
|
||||
char *emptystr;
|
||||
static char nickmode[2]; /* FIXME: bad */
|
||||
|
||||
if (!settings_get_bool("show_nickmode"))
|
||||
return "";
|
||||
|
||||
emptystr = settings_get_bool("show_nickmode_empty") ? " " : "";
|
||||
|
||||
if (nickrec != NULL && nickrec->other) {
|
||||
nickmode[0] = nickrec->other;
|
||||
nickmode[1] = '\0';
|
||||
return nickmode;
|
||||
}
|
||||
|
||||
return nickrec == NULL ? emptystr :
|
||||
nickrec->op ? "@" :
|
||||
nickrec->halfop ? "%" :
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue