/[projects]/smsdaemon/plugins/SpamPlugin.cpp
ViewVC logotype

Diff of /smsdaemon/plugins/SpamPlugin.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 521 by torben, Sun Dec 27 18:01:36 2009 UTC revision 522 by torben, Sun Dec 27 18:37:23 2009 UTC
# Line 17  Line 17 
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    
# Line 39  void SpamPlugin::Execute(ISmsTransceiver Line 39  void SpamPlugin::Execute(ISmsTransceiver
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;

Legend:
Removed from v.521  
changed lines
  Added in v.522

  ViewVC Help
Powered by ViewVC 1.1.20