filter-command-in-message: actually decode and apply the filter

git-svn-id: http://repo.ham.fi/svn/aprsc/trunk@780 3ce903b1-3385-4e86-93cd-f9a4a239f7ac
This commit is contained in:
Heikki Hannikainen 2012-09-01 08:09:50 +00:00
parent 7becd0df93
commit 8502692fac
1 changed files with 6 additions and 2 deletions

View File

@ -449,9 +449,13 @@ static int incoming_server_message(struct worker_t *self, struct client_t *c, st
}
}
//msg = pb->dstname +
if (strncasecmp(am.body, "filter ", 7) == 0) {
return filter_commands(self, c, am.body, am.body_len);
}
return 0;
/* unknown command */
return client_printf(self, c, "SERVER>" APRSC_TOCALL ",TCPIP*,qAZ,%s::%-9.*s:Unknown command{%.*s\r\n",
serverid, pb->srcname_len, pb->srcname, am.msgid_len, am.msgid);
}
/*