diff options
| author | 2018-08-10 07:46:42 +0100 | |
|---|---|---|
| committer | 2018-08-10 13:55:32 +0100 | |
| commit | 8b418f081f7ecbfdd51c84fae2298f927155fac0 (patch) | |
| tree | b600035f9346e081482fe1cad75b12697b56ae4a /src/modules/m_xline_db.cpp | |
| parent | Remove the integer overloads of irc::tokenparser::GetToken(). (diff) | |
Split irc::tokenparser::GetToken into GetMiddle and GetTrailing.
This simplifies the logic of irc::tokenparser considerably and
removes all of the magic index guessing that was used previously.
Diffstat (limited to 'src/modules/m_xline_db.cpp')
| -rw-r--r-- | src/modules/m_xline_db.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_xline_db.cpp b/src/modules/m_xline_db.cpp index fe6dabca0..90f9de9d2 100644 --- a/src/modules/m_xline_db.cpp +++ b/src/modules/m_xline_db.cpp @@ -166,7 +166,7 @@ class ModuleXLineDB : public Module std::string command_p[7]; std::string tmp; - while (tokens.GetToken(tmp) && (items < 7)) + while (tokens.GetTrailing(tmp) && (items < 7)) { command_p[items] = tmp; items++; |
