summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:17:59 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-04-11 18:17:59 +0000
commitd1e81f7b8023e21106cd5d005032ecd036473cf8 (patch)
tree80c55f1afb942dab22318e34fef5a267e6c7fb58
parent4e97ad35d21d21e45a1a43e4311ac6bd8e9705ab (diff)
Fixes to use iterator
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@546 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/connection.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/connection.cpp b/src/connection.cpp
index f4ab75f0a..9f6896c62 100644
--- a/src/connection.cpp
+++ b/src/connection.cpp
@@ -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;