if not me starting it
This commit is contained in:
parent
0ab4088239
commit
e4cab95923
5
raid.cpp
5
raid.cpp
@ -26,7 +26,10 @@ class CRaidMod : public CModule {
|
|||||||
~CRaidMod() override {}
|
~CRaidMod() override {}
|
||||||
|
|
||||||
EModRet OnChanMsg(CNick& Nick, CChan& Channel, CString& sMessage) 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() + " :.raid");
|
||||||
PutIRC("PRIVMSG " + Channel.GetName() + " :.adv");
|
PutIRC("PRIVMSG " + Channel.GetName() + " :.adv");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user