1
0
mirror of https://github.com/anope/anope.git synced 2026-07-03 19:23:14 +02:00

Make CommandSource use references, sometimes we hold them for awhile

This commit is contained in:
Adam
2012-09-15 10:11:31 -04:00
parent 1e71303ffa
commit 9ba7196881
19 changed files with 57 additions and 44 deletions
+1 -1
View File
@@ -85,7 +85,7 @@ Log::Log(LogType type, const Anope::string &category, const BotInfo *b) : bi(b),
this->Sources.push_back(bi->nick);
}
Log::Log(LogType type, const CommandSource &source, Command *_c, const ChannelInfo *_ci) : nick(source.GetNick()), u(source.GetUser()), nc(source.nc), c(_c), chan(NULL), ci(_ci), s(NULL), Type(type)
Log::Log(LogType type, CommandSource &source, Command *_c, const ChannelInfo *_ci) : nick(source.GetNick()), u(source.GetUser()), nc(source.nc), c(_c), chan(NULL), ci(_ci), s(NULL), Type(type)
{
if (!c)
throw CoreException("Invalid pointers passed to Log::Log");