/[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 141 by torben, Sun Nov 2 20:14:20 2008 UTC revision 142 by torben, Sun Dec 7 15:51:02 2008 UTC
# Line 20  const string USAGE = "Usage: spam <recip Line 20  const string USAGE = "Usage: spam <recip
20    
21  void SpamPlugin::Execute(IGsmModem& modem, SMS& sms)  void SpamPlugin::Execute(IGsmModem& modem, SMS& sms)
22  {  {
23          string cmd = GetSmsData(sms);          string cmd = sms.ExtractParameters();
24    
25    
26          if (cmd == "")          if (cmd == "")
27          {          {
28                  modem.SendSms(sms.sender, USAGE, false);                  modem.SendSms(sms.GetSender(), USAGE, false);
29                  return;                  return;
30          }          }
31                    
# Line 34  void SpamPlugin::Execute(IGsmModem& mode Line 34  void SpamPlugin::Execute(IGsmModem& mode
34    
35          if (parts.size() < 2 )          if (parts.size() < 2 )
36          {          {
37                  modem.SendSms(sms.sender, USAGE, false);                  modem.SendSms(sms.GetSender(), USAGE, false);
38                  return;                  return;
39          }          }
40    

Legend:
Removed from v.141  
changed lines
  Added in v.142

  ViewVC Help
Powered by ViewVC 1.1.20