mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
Fixes to use iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@546 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
parent
4e97ad35d2
commit
d1e81f7b80
@ -315,7 +315,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey)
|
||||
strcpy(host,buffer[0].host);
|
||||
prt = buffer[0].port;
|
||||
|
||||
buffer.erase(0);
|
||||
buffer.erase(buffer.begin());
|
||||
|
||||
return true;
|
||||
}
|
||||
@ -366,7 +366,7 @@ bool connection::RecvPacket(char *message, char* host, int &prt, long &theirkey)
|
||||
strcpy(host,buffer[0].host);
|
||||
prt = buffer[0].port;
|
||||
|
||||
buffer.erase(0);
|
||||
buffer.erase(buffer.begin());
|
||||
}
|
||||
|
||||
return true;
|
||||
|
Loading…
x
Reference in New Issue
Block a user