std::string("Added flag '%c' to user %s.")).c_str(),
flag,
targetUser->getUserName().c_str());
+
+bot->logAdminMessage("%s (%s) ADDFLAG %s %c",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ targetUser->getUserName(),flag);
+
} //ADDFLAGCommand::Exec
} //Namespace cf
} //Namespace gnuworld
std::string("Note recorded for channel %s.")).c_str(),
theChan->getChannel().c_str());
+bot->logAdminMessage("%s (%s) ADDNOTE %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ theChan->getChannel().c_str(),st.assemble(2).c_str());
+
+
return;
}
} // namespace cf
bot->countChanOps(netChan), netChan->size(),
netChan->getName().c_str());
+bot->logAdminMessage("%s (%s) CHECK %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ netChan->getName().c_str());
+
+
return;
}
language::deleted_flag,
std::string("Deleted flag '%c' from user %s.")).c_str(), flag,
targetUser->getUserName().c_str());
+
+bot->logAdminMessage("%s (%s) DELFLAG %s %c",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ targetUser->getUserName().c_str(),flag);
+
+
} //DELFLAGCommand::Exec
} //Namespace cf
std::string("Note #%d for channel %s deleted.")).c_str(),
messageId, theChan->getChannel().c_str());
+
+bot->logAdminMessage("%s (%s) DELNOTE %s %d",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ theChan->getChannel().c_str(), messageId);
+
+
return;
}
/* Dispose of our connection instance */
bot->theManager->removeConnection(cacheCon);
+bot->logAdminMessage("%s (%s) HISTORY %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ theChan->getChannel().c_str());
+
+
return;
}
/* Dispose of our connection instance */
bot->theManager->removeConnection(cacheCon);
+bot->logAdminMessage("%s (%s) INFO %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ theChan->getChannel().c_str());
+
+
return;
}
bot->Invite(theClient, theChannel);
+bot->logAdminMessage("%s (%s) INVITE %s [CODER-CHAN]",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ theChannel->getName().c_str());
+
+
return;
}
std::string("%d channels blocked.")).c_str(),
numBlocks);
+bot->logAdminMessage("%s (%s) LISTBLOCKED",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str());
+
+
return;
}
} // namespace cf
language::host_list_footer,
std::string("End of host list.")).c_str());
+bot->logAdminMessage("%s (%s) LISTHOSTS %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ targetUser->getUserName().c_str());
+
+
return;
} //LISTHOSTSCommand::Exec
unsigned int opCount = 0;
bool inChan = false;
-Channel* netChan = Network->findChannel(st[1]);
std::string firstop;
std::string lastop;
std::string nickName = "";
lastop.c_str(), inChan ? nickName.c_str() : "", inChan ? "\002" : "");
}
+bot->logAdminMessage("%s (%s) OPLIST %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ st[1].c_str(), all ? "ALL" : "");
+
+
return;
}
/* Log command */
/* ... */
+bot->logAdminMessage("%s (%s) OPNICKS %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ netChan->getName().c_str());
+
+
return;
}
return;
}
+bot->logAdminMessage("%s (%s) REHASH %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ !option.empty() ? option.c_str() : "");
+
+
return;
}
theUser->getUserName().c_str(),
theClient->getRealNickUserHost().c_str());
+bot->logAdminMessage("%s (%s) RELOAD %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ (st.size() < 2) ? "" : st.assemble(1).c_str());
+
+
if (st.size() < 2)
server->UnloadClient(bot, "Reloading...");
else
}
if (st.size() > 2) {
+ bot->logAdminMessage("%s (%s) %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ compact ? "CSCORE" : "SCORE",
+ st.assemble(1).c_str());
+
const char* scUser = st[2].c_str();
if (st[2][0] == '=') {
/* Nickname */
strScoresNOP << ".";
}
+bot->logAdminMessage("%s (%s) %s %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ compact ? "CSCORE" : "SCORE",
+ st.assemble(1).c_str());
+
+
if (compact) {
bot->SendTo(theClient, "~S %s %s", st[1].c_str(), strScoresDB.str().c_str());
if (!netChan) {
bot->SendTo(theClient, strScoresNOP.str());
}
+
return;
}
while ((pos = option.find('_', 0)) != std::string::npos)
option.erase(pos, 1);
+bot->logAdminMessage("%s (%s) SET %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ option.c_str(), value.c_str());
+
+
if (option == "NUMSERVERS") {
int setting = atoi(value.c_str());
if (setting < 0) {
theUser->getUserName().c_str(),
theClient->getRealNickUserHost().c_str());
+bot->logAdminMessage("%s (%s) SHUTDOWN %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ (st.size() < 2) ? "" : st.assemble(1).c_str());
+
+
if (st.size() < 2)
server->Shutdown();
else
language::status_channel_service_not_linked,
std::string("Channel service not linked. New channels will not be scored.")).c_str());
+bot->logAdminMessage("%s (%s) STATUS",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str());
+
+
return;
}
std::string option;
std::string value;
+
+
if (st.size() == 4) {
sqlUser* targetUser = bot->isAuthed(st[1]);
option = string_upper(st[2]);
option = string_upper(st[1]);
value = string_upper(st[2]);
+bot->logAdminMessage("%s (%s) USET %s %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ option.c_str(), value.c_str());
+
+
if (option == "NOTICE") {
if (value == "ON" || value == "YES" || value == "1") {
theUser->setNotice(true);
{
StringTokenizer st(Message);
+bot->logAdminMessage("%s (%s) WHOGROUP %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ (st.size() > 1) ? st[1].c_str() : "");
+
+
if (st.size() == 1) {
/* No parameter supplied, so list all groups */
PgDatabase* cacheCon = bot->theManager->getConnection();
void WHOISCommand::Exec(iClient* theClient, sqlUser* theUser, const std::string& Message)
{
StringTokenizer st(Message);
-
+
+bot->logAdminMessage("%s (%s) WHOIS %s",
+ theUser->getUserName().c_str(),
+ theClient->getRealNickUserHost().c_str(),
+ st[1].c_str());
+
+
if (st[1] == "*") {
unsigned int numUsers = 0;
bot->SendTo(theClient,