Added %c substitution to mod_welcome to print the current user credentials.

This commit is contained in:
Jan Vidar Krey
2011-12-22 00:14:34 +00:00
parent 24e2c2090e
commit ecedd44fee
2 changed files with 4 additions and 1 deletions

View File

@@ -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, "%");