Added %c substitution to mod_welcome to print the current user credentials.
This commit is contained in:
@@ -184,6 +184,9 @@ static struct cbuffer* parse_message(struct plugin_user* user, const char* msg)
|
||||
case 'a':
|
||||
cbuf_append(buf, ip_convert_to_string(&user->addr));
|
||||
break;
|
||||
case 'c':
|
||||
cbuf_append(buf, auth_cred_to_string(user->credentials));
|
||||
break;
|
||||
|
||||
case '%':
|
||||
cbuf_append(buf, "%");
|
||||
|
||||
Reference in New Issue
Block a user