Fixes SourceForge bug #
3308832.
src/mod-memoserv.c (memoserv_can_send): Require the recipient to have
joined a channel for their membership there to count as common
with the sender. (This was the original intent.)
if (!(account->flags & MEMO_DENY_NONCHANNEL))
return 1;
for (dest = account->handle->channels; dest; dest = dest->u_next) {
- struct userData *recip = _GetChannelUser(dest->channel, user->handle_info, 1, 0);
- if (recip != NULL && recip->seen != 0)
+ if (dest->seen && _GetChannelUser(dest->channel, user->handle_info, 1, 0))
return 1;
}
send_message(user, bot, "MSMSG_CANNOT_SEND", account->handle->handle);