1
0
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:
Adam
2010-10-04 13:59:30 -04:00
parent 632f8df76b
commit cf98cd3e06
19 changed files with 1417 additions and 1739 deletions
-36
View File
@@ -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