forked from github/server
receiver in messages wieder rueckgaengig (reports)
This commit is contained in:
parent
df4efb853a
commit
b575761264
2 changed files with 30 additions and 33 deletions
|
@ -379,7 +379,6 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
|||
{
|
||||
struct mlist* m = msgs->begin;
|
||||
while (m) {
|
||||
if(m->msg->receiver == NULL || m->msg->receiver == f) {
|
||||
char crbuffer[1024*32]; /* gross, wegen spionage-messages :-( */
|
||||
boolean printed = false;
|
||||
const struct message_type * mtype = m->msg->type;
|
||||
|
@ -413,7 +412,6 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
|||
mtypehash[ihash] = kmt;
|
||||
}
|
||||
}
|
||||
}
|
||||
m = m->next;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -752,8 +752,7 @@ rp_messages(FILE * F, message_list * msgs, faction * viewer, int indent, boolean
|
|||
if (!debug && get_msglevel(viewer->warnings, viewer->msglevels, m->type) < m->level) continue;
|
||||
#endif
|
||||
/* messagetype * mt = m->type; */
|
||||
if (strcmp(nr_section(m->msg), category->name)==0
|
||||
&& (m->msg->receiver == NULL || m->msg->receiver == viewer))
|
||||
if (strcmp(nr_section(m->msg), category->name)==0)
|
||||
{
|
||||
char buf[4096], *s = buf;
|
||||
nr_render(m->msg, viewer->locale, s, viewer);
|
||||
|
|
Loading…
Reference in a new issue