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;
|
struct mlist* m = msgs->begin;
|
||||||
while (m) {
|
while (m) {
|
||||||
if(m->msg->receiver == NULL || m->msg->receiver == f) {
|
|
||||||
char crbuffer[1024*32]; /* gross, wegen spionage-messages :-( */
|
char crbuffer[1024*32]; /* gross, wegen spionage-messages :-( */
|
||||||
boolean printed = false;
|
boolean printed = false;
|
||||||
const struct message_type * mtype = m->msg->type;
|
const struct message_type * mtype = m->msg->type;
|
||||||
|
@ -413,7 +412,6 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
||||||
mtypehash[ihash] = kmt;
|
mtypehash[ihash] = kmt;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
m = m->next;
|
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;
|
if (!debug && get_msglevel(viewer->warnings, viewer->msglevels, m->type) < m->level) continue;
|
||||||
#endif
|
#endif
|
||||||
/* messagetype * mt = m->type; */
|
/* messagetype * mt = m->type; */
|
||||||
if (strcmp(nr_section(m->msg), category->name)==0
|
if (strcmp(nr_section(m->msg), category->name)==0)
|
||||||
&& (m->msg->receiver == NULL || m->msg->receiver == viewer))
|
|
||||||
{
|
{
|
||||||
char buf[4096], *s = buf;
|
char buf[4096], *s = buf;
|
||||||
nr_render(m->msg, viewer->locale, s, viewer);
|
nr_render(m->msg, viewer->locale, s, viewer);
|
||||||
|
|
Loading…
Reference in a new issue