mirror of
https://github.com/anope/anope.git
synced 2026-07-10 20:03:15 +02:00
Burned slist, rewrote operservs XLine code
This commit is contained in:
+18
@@ -32,6 +32,15 @@ void send_cmd(const char *source, const char *fmt, ...)
|
||||
|
||||
vsnprintf(buf, BUFSIZE - 1, fmt, args);
|
||||
|
||||
if (!UplinkSock)
|
||||
{
|
||||
if (source)
|
||||
Alog(LOG_DEBUG) << "Attemtped to send \"" << source << " " << buf << "\" with UplinkSock NULL";
|
||||
else
|
||||
Alog(LOG_DEBUG) << "Attemtped to send \"" << buf << "\" with UplinkSock NULL";
|
||||
return;
|
||||
}
|
||||
|
||||
if (source)
|
||||
{
|
||||
UplinkSock->Write(":%s %s", source, buf);
|
||||
@@ -59,6 +68,15 @@ void send_cmd(const std::string &source, const char *fmt, ...)
|
||||
|
||||
vsnprintf(buf, BUFSIZE - 1, fmt, args);
|
||||
|
||||
if (!UplinkSock)
|
||||
{
|
||||
if (!source.empty())
|
||||
Alog(LOG_DEBUG) << "Attemtped to send \"" << source << " " << buf << "\" with UplinkSock NULL";
|
||||
else
|
||||
Alog(LOG_DEBUG) << "Attemtped to send " << buf << "\" with UplinkSock NULL";
|
||||
return;
|
||||
}
|
||||
|
||||
if (!source.empty())
|
||||
{
|
||||
UplinkSock->Write(":%s %s", source.c_str(), buf);
|
||||
|
||||
Reference in New Issue
Block a user