$ git clone https://www.wlchat.ion.nu/wlchat.git
commit f0c3df6f995891ae457066e6fe86d4374e1da1b3
Author: Alicia <...>
Date: Wed Aug 27 21:34:38 2025 +0200
Added '🛡️' to denote moderators in the GTK+ GUI
diff --git a/gtk.py b/gtk.py
index 0e1ab45..190ca68 100755
--- a/gtk.py
+++ b/gtk.py
@@ -60,15 +60,21 @@ def insertpronoun(c, pronoun):
gprint(c, ' '+pronoun, tag)
def msg(c, chan, nick, data):
+ ismod=data['features'].count('moderator')
if(data['data'].startswith('/me ')): # According to cripton86 webclient doesn't do greentext for /me
gprint(c, '\n* ')
+ if(ismod): gprint(c, '🛡️') # Add 🛡️ for mods
gprint(c, data['nick'], 'name')
if(data.get('pronouns') and int(data['pronouns'])>0 and int(data['pronouns'])<len(wlchat.pronouns)): insertpronoun(c, data['pronouns'])
data['data']=data['data'][3:]
wlchat.findemotes(data, c['emotes']) # Do it here so we get the right positions
else:
wlchat.findemotes(data, c['emotes'])
- gprint(c, '\n'+data['nick'], 'name')
+ if(ismod): # Add 🛡️ for mods
+ gprint(c, '\n🛡️')
+ else:
+ gprint(c, '\n')
+ gprint(c, data['nick'], 'name')
if(data.get('pronouns') and int(data['pronouns'])>0 and int(data['pronouns'])<len(wlchat.pronouns)): insertpronoun(c, data['pronouns'])
gprint(c, ': ')
if(data.get('nodes') and data['nodes'].get('emotes')):