| Revision: | 1.3 |
| Committed: | Mon Oct 25 12:06:57 2010 UTC (15 years, 11 months ago) by sf-pippijn |
| Content type: | text/plain |
| Branch: | MAIN |
| CVS Tags: | HEAD |
| Changes since 1.2: | +1 -0 lines |
| Log Message: | be more strict about the protocol |
| # | User | Rev | Content |
|---|---|---|---|
| 1 | sf-pippijn | 1.1 | void |
| 2 | command_parser::on_drawinfo (std::istream &args) | ||
| 3 | { | ||
| 4 | sf-pippijn | 1.2 | int level; |
| 5 | std::string msg; | ||
| 6 | sf-pippijn | 1.1 | |
| 7 | sf-pippijn | 1.2 | args >> level; |
| 8 | while (args.peek () == ' ') | ||
| 9 | args.ignore (); | ||
| 10 | std::getline (args, msg); | ||
| 11 | sf-pippijn | 1.3 | PARSE_END; |
| 12 | sf-pippijn | 1.2 | |
| 13 | emit drawinfo (level, msg); | ||
| 14 | sf-pippijn | 1.1 | } |