/*
* Author : Boris Mikhailenko <stg34@stargazer.dp.ua>
- * Author : Maxim Mamontov <faust@stargazer.dp.ua>
+ * Author : Maksym Mamontov <stg@madf.info>
*/
#ifndef __STG_SGCONFIG_PARSER_SEND_MESSAGE_H__
#include "parser.h"
#include "stg/message.h"
+#include "stg/common.h"
#include <vector>
#include <string>
class FACTORY : public BASE_PARSER::FACTORY
{
public:
- FACTORY(USERS & users) : m_users(users) {}
+ explicit FACTORY(USERS & users) : m_users(users) {}
virtual BASE_PARSER * create(const ADMIN & admin) { return new SEND_MESSAGE(admin, m_users); }
static void Register(REGISTRY & registry, USERS & users)
- { registry[tag] = new FACTORY(users); }
+ { registry[ToLower(tag)] = new FACTORY(users); }
private:
USERS & m_users;
};