--- smsdaemon/plugins/SpamPlugin.cpp 2008/06/16 10:21:02 90 +++ smsdaemon/plugins/SpamPlugin.cpp 2008/12/07 15:51:02 142 @@ -5,6 +5,7 @@ #include "util.h" #include "common.h" #include +#include using namespace std; @@ -19,12 +20,12 @@ void SpamPlugin::Execute(IGsmModem& modem, SMS& sms) { - string cmd = GetSmsData(sms); + string cmd = sms.ExtractParameters(); if (cmd == "") { - modem.SendSms(sms.sender, USAGE, false); + modem.SendSms(sms.GetSender(), USAGE, false); return; } @@ -33,7 +34,7 @@ if (parts.size() < 2 ) { - modem.SendSms(sms.sender, USAGE, false); + modem.SendSms(sms.GetSender(), USAGE, false); return; }