Mercurial > cabal
diff sources/parser.cpp @ 7:8d54d9fdeca3
fixed comments
removed daemonization verbose
strings' size() -> length()
| author | Vlad Glagolev <enqlave@gmail.com> |
|---|---|
| date | Sun, 03 Feb 2008 21:29:41 +0300 |
| parents | 9be05a31b7f9 |
| children |
line wrap: on
line diff
--- a/sources/parser.cpp Sun Jan 27 17:23:14 2008 +0300 +++ b/sources/parser.cpp Sun Feb 03 21:29:41 2008 +0300 @@ -1,5 +1,4 @@ -/** - * parser.cpp (2007-05-13) +/** parser.cpp (2007-05-13) * * -- CABAL -- irc commands parser * @@ -36,10 +35,8 @@ char *where = strtok(NULL, " "); char *data = strtok(NULL, "\n"); - if (strchr(who, '!')) { - id = strchr(who, '!'); - id = id.substr(1); - } + if (strchr(who, '!')) + id = strchr(who, '!'), id = id.substr(1); if (strtok(who, "!")) name = strtok(who, "!");
