--- smsdaemon/plugins/SpamPlugin.cpp 2008/12/07 20:58:41 149 +++ smsdaemon/plugins/SpamPlugin.cpp 2008/12/18 06:53:29 196 @@ -2,8 +2,8 @@ #include "ISmsTransceiver.h" #include "Sms.h" -#include "util.h" -#include "common.h" +#include "Util.h" +#include "Logger.h" #include #include @@ -12,7 +12,7 @@ SpamPlugin::SpamPlugin() -: Plugin("spam", "Sends a number of messages to a given phone nr") + : Plugin("spam", "Sends a number of messages to a given phone nr") { } @@ -28,7 +28,7 @@ modem.SendSms(sms.GetSender(), USAGE, false); return; } - + vector parts = Util::str_split(cmd," "); @@ -42,10 +42,10 @@ unsigned int count = atoi(parts[1].c_str()); if (count > 25) count = 25; - + ostringstream os; os << "Spamming " << nr << " " << count << " times."; - Common::instance()->logMessage(os.str()); + Logger::logMessage(os.str()); string message; for (unsigned i=2; i