mirror of
https://github.com/anope/anope.git
synced 2026-07-08 08:43:14 +02:00
Merge branch '1.9' of anope.git.sf.net:/gitroot/anope/anope into 1.9
This commit is contained in:
+2
-2
@@ -416,7 +416,7 @@ bool isvalidchar(char c)
|
||||
Anope::string myStrGetToken(const Anope::string &str, char dilim, int token_number)
|
||||
{
|
||||
if (str.empty() || str.find(dilim) == Anope::string::npos)
|
||||
return "";
|
||||
return token_number ? "" : str;
|
||||
|
||||
Anope::string substring;
|
||||
sepstream sep(str, dilim);
|
||||
@@ -438,7 +438,7 @@ Anope::string myStrGetToken(const Anope::string &str, char dilim, int token_numb
|
||||
Anope::string myStrGetTokenRemainder(const Anope::string &str, const char dilim, int token_number)
|
||||
{
|
||||
if (str.empty() || str.find(dilim) == Anope::string::npos)
|
||||
return "";
|
||||
return token_number ? "" : str;
|
||||
|
||||
Anope::string substring;
|
||||
sepstream sep(str, dilim);
|
||||
|
||||
Reference in New Issue
Block a user