if not me starting it

This commit is contained in:
Jordan Koch 2019-07-07 12:31:02 -04:00
parent 0ab4088239
commit e4cab95923

View File

@ -26,7 +26,10 @@ class CRaidMod : public CModule {
~CRaidMod() override {}
EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) override {
if (sMessage.Contains("u create a queue for ") && Nick.GetNick() == "brobot") {
CIRCNetwork* network = GetNetwork();
myNick = network->GetNick()
if (sMessage.Contains("u create a queue for ") && !sMessage.Contains(myNick) && Nick.GetNick() == "brobot") {
PutIRC("PRIVMSG " + Channel.GetName() + " :.raid");
PutIRC("PRIVMSG " + Channel.GetName() + " :.adv");
}