src/game/auth.h
- {l Code}: {l Select All Code}
void setmaster(clientinfo *ci, bool val, int flags = 0, bool authed = false)
{
int privilege = ci->privilege;
if(val)
{
if(ci->privilege >= flags) return;
privilege = ci->privilege = flags;
if(authed)
{
if(ci->privilege > PRIV_USER) {
srvoutf( -2, "%s has just entered the TWILIGHT ZONE!! MUAHAHAHA!!! Please respect the rights of the commoners.", colorname(ci) ) ;
srvoutf(-2, "\fy%s authenticated as \fs\fc%s\fS and claimed \fs\fc%s\fS", colorname(ci), ci->authname, privname(privilege)); }
else {
srvoutf( -2, "\frWhat's the point of having an auth key if you can't really do anything with it?\fS" );
srvoutf(-2, "\fy%s identified as \fs\fc%s\fS", colorname(ci), ci->authname); }
}
else {
srvoutf( -2, "\fzry%s, with power comes responsibility. Please don't abuse it. Don't go against the majority.", colorname(ci) );
srvoutf(-2, "\fy%s claimed \fs\fc%s\fS", colorname(ci), privname(privilege)); }
}
else
{
if(!ci->privilege) return;
ci->privilege = PRIV_NONE;
int others = 0;
loopv(clients) if(clients[i]->privilege >= PRIV_MASTER || clients[i]->local) others++;
if(!others) mastermode = MM_OPEN;
srvoutf(-2, "\fy%s relinquished \fs\fc%s\fS", colorname(ci), privname(privilege));
}
masterupdate = true;
if(paused)
{
int others = 0;
loopv(clients) if(clients[i]->privilege >= (GAME(varslock) >= 2 ? PRIV_ADMIN : PRIV_MASTER) || clients[i]->local) others++;
if(!others) setpause(false);
}
}
What it looks like: (An auth user was not available for the demonstration, sadly)

I just thought it would be slightly amusing

EDIT: ph-[GPL] kindly joined me on my server today. here's a screenshot
