Added %c substitution to mod_welcome to print the current user credentials.
This commit is contained in:
parent
24e2c2090e
commit
ecedd44fee
|
@ -327,9 +327,9 @@ else
|
||||||
install: $(uhub_BINARY)
|
install: $(uhub_BINARY)
|
||||||
@echo Copying $(uhub_BINARY) to $(UHUB_PREFIX)/bin/
|
@echo Copying $(uhub_BINARY) to $(UHUB_PREFIX)/bin/
|
||||||
@cp $(uhub_BINARY) $(UHUB_PREFIX)/bin/
|
@cp $(uhub_BINARY) $(UHUB_PREFIX)/bin/
|
||||||
|
@cp $(uhub-passwd_BINARY) $(UHUB_PREFIX)/bin/
|
||||||
@if [ ! -d $(UHUB_CONF_DIR) ]; then echo Creating $(UHUB_CONF_DIR); mkdir -p $(UHUB_CONF_DIR); fi
|
@if [ ! -d $(UHUB_CONF_DIR) ]; then echo Creating $(UHUB_CONF_DIR); mkdir -p $(UHUB_CONF_DIR); fi
|
||||||
@if [ ! -f $(UHUB_CONF_DIR)/uhub.conf ]; then cp doc/uhub.conf $(UHUB_CONF_DIR); fi
|
@if [ ! -f $(UHUB_CONF_DIR)/uhub.conf ]; then cp doc/uhub.conf $(UHUB_CONF_DIR); fi
|
||||||
@if [ ! -f $(UHUB_CONF_DIR)/users.conf ]; then cp doc/users.conf $(UHUB_CONF_DIR); fi
|
|
||||||
@if [ ! -f $(UHUB_CONF_DIR)/rules.txt ]; then cp doc/rules.txt $(UHUB_CONF_DIR); fi
|
@if [ ! -f $(UHUB_CONF_DIR)/rules.txt ]; then cp doc/rules.txt $(UHUB_CONF_DIR); fi
|
||||||
@if [ ! -f $(UHUB_CONF_DIR)/plugins.conf ]; then cp doc/plugins.conf $(UHUB_CONF_DIR); fi
|
@if [ ! -f $(UHUB_CONF_DIR)/plugins.conf ]; then cp doc/plugins.conf $(UHUB_CONF_DIR); fi
|
||||||
@if [ ! -d $(UHUB_MOD_DIR) ]; then echo Creating $(UHUB_MOD_DIR); mkdir -p $(UHUB_MOD_DIR); fi
|
@if [ ! -d $(UHUB_MOD_DIR) ]; then echo Creating $(UHUB_MOD_DIR); mkdir -p $(UHUB_MOD_DIR); fi
|
||||||
|
|
|
@ -184,6 +184,9 @@ static struct cbuffer* parse_message(struct plugin_user* user, const char* msg)
|
||||||
case 'a':
|
case 'a':
|
||||||
cbuf_append(buf, ip_convert_to_string(&user->addr));
|
cbuf_append(buf, ip_convert_to_string(&user->addr));
|
||||||
break;
|
break;
|
||||||
|
case 'c':
|
||||||
|
cbuf_append(buf, auth_cred_to_string(user->credentials));
|
||||||
|
break;
|
||||||
|
|
||||||
case '%':
|
case '%':
|
||||||
cbuf_append(buf, "%");
|
cbuf_append(buf, "%");
|
||||||
|
|
Loading…
Reference in New Issue