- std::string txt;
- txt = MyConf.ReadValue("alias", "text", i);
- a.AliasedCommand = txt.c_str();
- a.ReplaceFormat = MyConf.ReadValue("alias", "replace", i, true);
- a.RequiredNick = MyConf.ReadValue("alias", "requires", i);
- a.ULineOnly = MyConf.ReadFlag("alias", "uline", i);
- a.ChannelCommand = MyConf.ReadFlag("alias", "channelcommand", false, i);
- a.UserCommand = MyConf.ReadFlag("alias", "usercommand", true, i);
- a.OperOnly = MyConf.ReadFlag("alias", "operonly", i);
- a.format = MyConf.ReadValue("alias", "format", i);
- a.CaseSensitive = MyConf.ReadFlag("alias", "matchcase", i);
- Aliases.insert(std::make_pair(txt, a));
+ std::string aliastext = tag->getString("text");
+ a.AliasedCommand = aliastext.c_str();
+ tag->readString("replace", a.ReplaceFormat, true);
+ a.RequiredNick = tag->getString("requires");
+ a.ULineOnly = tag->getBool("uline");
+ a.ChannelCommand = tag->getBool("channelcommand", false);
+ a.UserCommand = tag->getBool("usercommand", true);
+ a.OperOnly = tag->getBool("operonly");
+ a.format = tag->getString("format");
+ a.CaseSensitive = tag->getBool("matchcase");
+ Aliases.insert(std::make_pair(a.AliasedCommand, a));