aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_xline_db.cpp
diff options
context:
space:
mode:
authorGravatar Peter Powell2018-08-10 07:46:42 +0100
committerGravatar Peter Powell2018-08-10 13:55:32 +0100
commit8b418f081f7ecbfdd51c84fae2298f927155fac0 (patch)
treeb600035f9346e081482fe1cad75b12697b56ae4a /src/modules/m_xline_db.cpp
parentRemove 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.cpp2
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++;