X-Git-Url: https://git.distorted.org.uk/~mdw/tripe/blobdiff_plain/8743c77697568c88131c3c39a0b1e002e1fa09a0..799e58b96ef4948629d5e1b5401f537d74082ab7:/server/admin.c?ds=sidebyside diff --git a/server/admin.c b/server/admin.c index df8af92b..e8920547 100644 --- a/server/admin.c +++ b/server/admin.c @@ -313,6 +313,26 @@ void a_vformat(dstr *d, const char *fmt, va_list ap) dstr_destroy(&dd); } +/* --- @a_format@ --- * + * + * Arguments: @dstr *d@ = where to leave the formatted message + * @const char *fmt@ = pointer to format string + * + * Returns: --- + * + * Use: Writes a tokenized message into a string, for later + * presentation. + */ + +void a_format(dstr *d, const char *fmt, ...) +{ + va_list ap; + + va_start(ap, fmt); + a_vformat(d, fmt, ap); + va_end(ap); +} + /* --- @a_write@, @a_vwrite@ --- * * * Arguments: @admin *a@ = admin connection to write to @@ -1258,6 +1278,7 @@ static void acmd_add(admin *a, unsigned ac, char *av[]) xfree(add->peer.tag); add->peer.tag = xstrdup(arg); }) + OPT("-mobile", { add->peer.f |= PSF_MOBILE; }) }); /* --- Make sure someone's not got there already --- */