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

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

No files matched your search

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