17 |
|
|
18 |
using namespace std; |
using namespace std; |
19 |
|
|
20 |
const string USAGE = "Usage: delayspam <recipient> <nr> <interval> message"; |
const string USAGE = "Usage: spam <recipient> <nr> <interval> <message>"; |
21 |
|
|
22 |
SpamPlugin::SpamPlugin() |
SpamPlugin::SpamPlugin() |
23 |
: Plugin("delayspam", "Like spam plugin but with interval between transmitted SMS") |
: Plugin("spam", "Sends a number of messages to a given phone nr") |
24 |
{ |
{ |
25 |
} |
} |
26 |
|
|
39 |
vector<string> parts = Util::str_split(cmd," "); |
vector<string> parts = Util::str_split(cmd," "); |
40 |
|
|
41 |
|
|
42 |
if (parts.size() < 3 ) |
if (parts.size() < 4 ) |
43 |
{ |
{ |
44 |
modem.SendSms(sms.GetSender(), USAGE, false); |
modem.SendSms(sms.GetSender(), USAGE, false); |
45 |
return; |
return; |