summaryrefslogtreecommitdiff
path: root/src/logger.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/logger.cpp')
-rw-r--r--src/logger.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index 011b13e63..f06112eb6 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -376,9 +376,13 @@ void LogInfo::ProcessMessage(const Log *l)
}
else if (target == "globops")
{
- if (UplinkSock && l->bi && l->type <= LOG_NORMAL && Me && Me->IsSynced())
+ if (UplinkSock && l->type <= LOG_NORMAL && Me && Me->IsSynced())
{
- IRCD->SendGlobops(l->bi, "%s", buffer.c_str());
+ BotInfo *bi = l->bi;
+ if (!bi)
+ bi = this->bot;
+ if (bi)
+ IRCD->SendGlobops(bi, "%s", buffer.c_str());
}
}
}