$ git clone http://ion.nu/git/webchat
commit 63e66cd093f2d3b280a007a9e1f5aa03edba7713
Author: Alicia <...>
Date: Fri Jan 1 00:07:41 2016 +0100
Announce moderators on join
diff --git a/src/chat.c b/src/chat.c
index 2d07668..99c9de8 100644
--- a/src/chat.c
+++ b/src/chat.c
@@ -203,6 +203,11 @@ printf("New connection\n");
sprintf(join, "mediastart:%s", chanusers[j]->nickname);
websock_write(users[i]->socket, join, strlen(join), WEBSOCK_TEXT, use_tls);
}
+ if(chanusers[j]->modprivileges)
+ {
+ sprintf(join, "mod:%s:%u", chanusers[j]->nickname, chanusers[j]->modprivileges);
+ websock_write(users[i]->socket, join, strlen(join), WEBSOCK_TEXT, use_tls);
+ }
}
}
}