+ virtual void OnOper(userrec* user, const std::string &opertype)
+ {
+ for(int i =0; i < Conf->Enumerate("type"); i++)
+ {
+ std::string type = Conf->ReadValue("type", "name", i);
+
+ if(strcmp(type.c_str(), user->oper) == 0)
+ {
+ std::string swhois = Conf->ReadValue("type", "swhois", i);
+
+ if(swhois.length())
+ {
+ std::string* old;
+ if(user->GetExt("swhois", old))
+ {
+ user->Shrink("swhois");
+ DELETE(old);
+ }
+
+ std::string* text = new std::string(swhois);
+ user->Extend("swhois", text);
+
+ break;
+ }
+ }
+ }
+ }
+