return;
}
u = onchannel(victim, chan);
- strcpy(title, (u &&CUtitle(u)) ? CUtitle(u) : "");
+ strcpy(title, u ? CUtitle(u) : "");
if (remove_user(u, chan)) {
if (!Channel_Quiet(chan) && !DarkLegal(victim)) {
format_channel_broadcast(chan, NULL, victim,
break;
}
u = onchannel(player, chan);
- strcpy(title, (u &&CUtitle(u)) ? CUtitle(u) : "");
+ strcpy(title, u ? CUtitle(u) : "");
if (remove_user(u, chan)) {
if (!Channel_Quiet(chan) && !DarkLegal(player))
format_channel_broadcast(chan, NULL, player, CB_CHECKQUIET | CB_PRESENCE,
return;
}
- if (!Channel_NoTitles(chan) && u &&CUtitle(u) && *CUtitle(u))
+ if (!Channel_NoTitles(chan) && u && *CUtitle(u))
title = CUtitle(u);
else
title = NULL;
ChanCreator(c) == player ? '*' : '-',
/* User status */
u ? (Chanuser_Gag(u) ? "Gag" : "On") : "Off",
- (u &&Chanuser_Quiet(u)) ? 'Q' : ' ',
- (u &&Chanuser_Hide(u)) ? 'H' : ' ',
+ (u && Chanuser_Quiet(u)) ? 'Q' : ' ',
+ (u && Chanuser_Hide(u)) ? 'H' : ' ',
bufferq_lines(ChanBufferQ(c)));
}
}
}
u = onchannel(executor, chan);
- if (!u &&!Chan_Can_Access(chan, executor)) {
+ if (!u && !Chan_Can_Access(chan, executor)) {
safe_str(T(e_perm), buff, bp);
return;
}
return;
}
u = onchannel(player, chan);
- if (!u &&!Chan_Can_Access(chan, player)) {
+ if (!u && !Chan_Can_Access(chan, player)) {
notify(player, T("CHAT: You must join a channel to recall from it."));
return;
}
if (extra && *extra)
title = extra;
- else if (u &&CUtitle(u))
+ else if (u)
title = CUtitle(u);
if (flags & CB_NONAME) {
for (n = 0; n < nargs; n += 2) {
if (*args[n] && (*(args[n] + 1) == '\0') &&
- ((qindex = qreg_indexes[(unsigned char) args[n][0]]) != -1)
- && global_eval_context.renv[qindex]) {
+ ((qindex = qreg_indexes[(unsigned char) args[n][0]]) != -1)) {
strcpy(global_eval_context.renv[qindex], args[n + 1]);
if (n == 0 && !strcmp(called_as, "SETR"))
safe_strl(args[n + 1], arglens[n + 1], buff, bp);
int qindex;
if (*args[0] && (*(args[0] + 1) == '\0') &&
- ((qindex = qreg_indexes[(unsigned char) args[0][0]]) != -1)
- && global_eval_context.renv[qindex])
+ ((qindex = qreg_indexes[(unsigned char) args[0][0]]) != -1))
safe_str(global_eval_context.renv[qindex], buff, bp);
else if (*args[0])
safe_str(get_namedreg(&global_eval_context.namedregs, args[0]), buff, bp);
{
FILE *f;
#ifndef WIN32
- if (options.uncompressprog && *options.uncompressprog) {
+ if (*options.uncompressprog) {
/* We do this because on some machines (SGI Irix, for example),
* the popen will not return NULL if the mailfile isn't there.
*/
errno, strerror(errno));
}
#ifndef WIN32
- if (options.compressprog && *options.compressprog) {
+ if (*options.compressprog) {
f =
#ifdef __LCC__
(FILE *)
db_close(FILE * f)
{
#ifndef WIN32
- if (options.compressprog && *options.compressprog) {
+ if (*options.compressprog) {
pclose(f);
} else
#endif /* WIN32 */