{
int status;
char **arg = argv;
- char *membervec[3];
+ char *membervec[3], *motd;
struct member *memberstruct;
/* clear all flags & lists */
com_err(whoami, status, " unable to connect to SMS");
exit(2);
}
+ if ( status = sms_motd(&motd) ) {
+ com_err(whoami, status, " unable to check server status");
+ exit(2);
+ }
+ if (motd) {
+ fprintf(stderr, "The SMS server is currently unavailable:\n%s\n", motd);
+ sms_disconnect();
+ exit(2);
+ }
+
if (!noauth && (status = sms_auth("blanche"))) {
com_err(whoami, status, " unable to authenticate to SMS");
com_err(whoami, 0,