summaryrefslogtreecommitdiff
path: root/src/send.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-08 20:23:00 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-04-08 20:23:00 +0000
commit973ecb7058325931d14a9537e5e3e57595347a10 (patch)
tree43585f36085949a1b494374572fa4e3dc25b0960 /src/send.c
parente1ff14e0c44d0a115372a821559b782c57c793f3 (diff)
Rewrote sockets. This adds support for IPv6 and makes Anope capable of reconnecting if it loses connection to the uplink.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2862 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/send.c')
-rw-r--r--src/send.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/send.c b/src/send.c
index a032b1f03..360d981f3 100644
--- a/src/send.c
+++ b/src/send.c
@@ -35,12 +35,12 @@ void send_cmd(const char *source, const char *fmt, ...)
if (source)
{
- sockprintf(servsock, ":%s %s\r\n", source, buf);
+ UplinkSock->Write(":%s %s", source, buf);
Alog(LOG_DEBUG) << "Sent: :" << source << " " << buf;
}
else
{
- sockprintf(servsock, "%s\r\n", buf);
+ UplinkSock->Write("%s", buf);
Alog(LOG_DEBUG) << "Sent: "<< buf;
}
@@ -62,12 +62,12 @@ void send_cmd(const std::string &source, const char *fmt, ...)
if (!source.empty())
{
- sockprintf(servsock, ":%s %s\r\n", source.c_str(), buf);
+ UplinkSock->Write(":%s %s", source.c_str(), buf);
Alog(LOG_DEBUG) << "Sent: :" << source << " " << buf;
}
else
{
- sockprintf(servsock, "%s\r\n", buf);
+ UplinkSock->Write("%s", buf);
Alog(LOG_DEBUG) << "Sent: " << buf;
}