(Guest(player) && !options.guest_allow)) {
if (!options.login_allow) {
fcache_dump(d, fcache.down_fcache, NULL);
- if (cf_downmotd_msg && *cf_downmotd_msg)
+ if (*cf_downmotd_msg)
raw_notify(player, cf_downmotd_msg);
} else if (MAX_LOGINS && !under_limit) {
fcache_dump(d, fcache.full_fcache, NULL);
- if (cf_fullmotd_msg && *cf_fullmotd_msg)
+ if (*cf_fullmotd_msg)
raw_notify(player, cf_fullmotd_msg);
}
if (!Can_Login(player)) {
}
orator = player;
- if (cf_motd_msg && *cf_motd_msg) {
+ if (*cf_motd_msg) {
raw_notify(player, cf_motd_msg);
}
raw_notify(player, " ");
*tbp = '\0';
notify_format(player, "Power Name : %s", power->name);
- notify_format(player, "Power Aliases : %s", tbuf ? tbuf : "");
+ notify_format(player, "Power Aliases : %s", tbuf);
notify_format(player, "Power Type : %s", powc_list[i].name);
} else
notify(player, "No such power.");
safe_format(tbuf, &tbp, ", %s", pname);
}
*tbp = '\0';
- notify_format(player, "Powers List: %s", tbuf ? tbuf : "None.");
+ notify_format(player, "Powers List: %s", tbuf);
}
char *list_all_powers(dbref player, const char *name) {
/* Check for **END OF DUMP*** */
fgets(buff, sizeof buff, fp);
- if (!buff)
+ if (!*buff)
do_rawlog(LT_ERR, T("CHAT: No end-of-dump marker in the chat database."));
else if (strcmp(buff, EOD) != 0)
do_rawlog(LT_ERR, T("CHAT: Trailing garbage in the chat database."));
/* Check for **END OF DUMP*** */
fgets(buff, sizeof buff, fp);
- if (!buff)
+ if (!*buff)
do_rawlog(LT_ERR, T("CHAT: No end-of-dump marker in the chat database."));
else if (strcmp(buff, EOD) != 0)
do_rawlog(LT_ERR, T("CHAT: Trailing garbage in the chat database."));
strcpy(name, remove_markup(n, NULL));
- if (!name || !*name)
+ if (!*name)
return 0;
/* No leading spaces */
if (nbuf1[0] == '0' && nbuf1[1] == '\n') {
char buff[20];
fgets(buff, sizeof buff, fp);
- if (!buff)
+ if (!*buff)
do_rawlog(LT_ERR,
T("MAIL: Missing end-of-dump marker in mail database."));
else if (strcmp(buff, (mail_flags & MDBF_NEW_EOD)
{
char buff[20];
fgets(buff, sizeof buff, fp);
- if (!buff)
+ if (!*buff)
do_rawlog(LT_ERR,
T("MAIL: Missing end-of-dump marker in mail database."));
else if (strcmp(buff, (mail_flags & MDBF_NEW_EOD)
icloc_ptr = atr_get(thing, "TRUERACE");
if(icloc_ptr)
strncpy(icloc_buf, atr_value(icloc_ptr), BUFFER_LEN-1);
- if(!icloc_buf) {
+ if(!*icloc_buf) {
if(player != thing)
notify(player, "That player does not have a valid TRUERACE set.");
notify(thing, "You do not have a valid TRUERACE set. Contact an administrator.");
memset(icloc_buf, '\0', BUFFER_LEN);
if(icloc_ptr)
strncpy(icloc_buf, atr_value(icloc_ptr), BUFFER_LEN-1);
- if(!icloc_buf) {
+ if(!*icloc_buf) {
if(player != thing)
notify(player, "That player has an invalid RP location set.");
notify(thing, "You have an invalid RP location set. Contact an administrator.");