public:
ModuleBotMode()
: bm(this)
+ {
+ }
+
+ void init()
{
if (!ServerInstance->Modes->AddMode(&bm))
throw ModuleException("Could not add new modes!");
ServerInstance->Modules->Attach(eventlist, this, 1);
}
-
virtual ~ModuleBotMode()
{
}
{
if (dst->IsModeSet('B'))
{
- ServerInstance->SendWhoisLine(src, dst, 335, std::string(src->nick)+" "+std::string(dst->nick)+" :is a bot on "+ServerInstance->Config->Network);
+ ServerInstance->SendWhoisLine(src, dst, 335, src->nick+" "+dst->nick+" :is a bot on "+ServerInstance->Config->Network);
}
}