mirror of
https://github.com/anope/anope.git
synced 2026-06-25 21:06:38 +02:00
Changed the protocol handling system to use a vector of strings instead of C style arrays. Burned the old process/split_buf/memory.c code
This commit is contained in:
@@ -556,42 +556,6 @@ Anope::string myStrGetTokenRemainder(const Anope::string &str, const char dilim,
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Clean up the buffer for extra spaces
|
||||
* @param str to clean up
|
||||
* @return void
|
||||
*/
|
||||
void doCleanBuffer(char *str)
|
||||
{
|
||||
char *in, *out;
|
||||
char ch;
|
||||
|
||||
if (!str)
|
||||
return;
|
||||
|
||||
in = str;
|
||||
out = str;
|
||||
|
||||
while (issp(ch = *in++));
|
||||
if (ch)
|
||||
for (;;)
|
||||
{
|
||||
*out++ = ch;
|
||||
ch = *in++;
|
||||
if (!ch)
|
||||
break;
|
||||
if (!issp(ch))
|
||||
continue;
|
||||
while (issp(ch = *in++));
|
||||
if (!ch)
|
||||
break;
|
||||
*out++ = ' ';
|
||||
}
|
||||
*out = ch; /* == '\0' */
|
||||
}
|
||||
|
||||
/*************************************************************************/
|
||||
|
||||
/**
|
||||
* Kill the user to enforce the sqline
|
||||
* @param nick to kill
|
||||
|
||||
Reference in New Issue
Block a user