string t_call_record::get_direction(void) const { switch (direction) { case DIR_IN: return TRANSLATE2("CoreCallHistory", "in"); case DIR_OUT: return TRANSLATE2("CoreCallHistory", "out"); } return TRANSLATE2("CoreCallHistory", "unknown"); }
string t_call_record::get_rel_cause(void) const { switch (rel_cause) { case CS_LOCAL_USER: return TRANSLATE2("CoreCallHistory", "local user"); case CS_REMOTE_USER: return TRANSLATE2("CoreCallHistory", "remote user"); case CS_FAILURE: return TRANSLATE2("CoreCallHistory", "failure"); } return TRANSLATE2("CoreCallHistory", "unknown"); }
CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2) { allow_empty_last_param = false; flags_needed = 'o'; syntax = "<nick> <newident>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSwhois(Module* Creator) : Command(Creator, "SWHOIS", 2, 2) , swhois("swhois", ExtensionItem::EXT_USER, Creator) { flags_needed = 'o'; syntax = "<nick> :<swhois>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandChghost(Module* Creator, char* hmap) : Command(Creator,"CHGHOST", 2), hostmap(hmap) { allow_empty_last_param = false; flags_needed = 'o'; syntax = "<nick> <newhost>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2) { allow_empty_last_param = false; flags_needed = 'o'; syntax = "<nick> <newname>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandKill::CommandKill(Module* parent) : Command(parent, "KILL", 2, 2) { flags_needed = 'o'; syntax = "<nickname> <reason>"; TRANSLATE2(TR_CUSTOM, TR_CUSTOM); }
CommandNicklock (Module* Creator, LocalIntExt& ext) : Command(Creator,"NICKLOCK", 2), locked(ext) { flags_needed = 'o'; syntax = "<oldnick> <newnick>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSethost(Module* Creator, char* hmap) : Command(Creator,"SETHOST", 1), hostmap(hmap) { allow_empty_last_param = false; flags_needed = 'o'; syntax = "<new-hostname>"; TRANSLATE2(TR_TEXT, TR_END); }
CommandSetidle(Module* Creator) : SplitCommand(Creator,"SETIDLE", 1) { flags_needed = 'o'; syntax = "<duration>"; TRANSLATE2(TR_TEXT, TR_END); }
CommandSetident(Module* Creator) : Command(Creator,"SETIDENT", 1) { allow_empty_last_param = false; flags_needed = 'o'; syntax = "<new-ident>"; TRANSLATE2(TR_TEXT, TR_END); }
CommandUninvite(Module* Creator) : Command(Creator,"UNINVITE", 2) { syntax = "<nick> <channel>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2) { flags_needed = 'o'; Penalty = 0; syntax = "<nick> <reason>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSetident (InspIRCd* Instance) : Command(Instance,"SETIDENT", "o", 1) { this->source = "m_setident.so"; syntax = "<new-ident>"; TRANSLATE2(TR_TEXT, TR_END); }
CommandSanick(Module* Creator) : Command(Creator,"SANICK", 2) { allow_empty_last_param = false; flags_needed = 'o'; Penalty = 0; syntax = "<nick> <new-nick>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSajoin(Module* Creator) : Command(Creator,"SAJOIN", 2) { allow_empty_last_param = false; flags_needed = 'o'; Penalty = 0; syntax = "<nick> <channel>"; TRANSLATE2(TR_NICK, TR_TEXT); }
CommandSVSWatch(Module* Creator) : Command(Creator,"SVSWATCH", 2) { syntax = "<target> [C|L|S]|[+|-<nick>]"; TRANSLATE2(TR_NICK, TR_TEXT); /* we watch for a nick. not a UID. */ }
CommandWatch(Module* parent, unsigned int &maxwatch) : Command(parent,"WATCH", 0), MAX_WATCH(maxwatch), ext("watchlist", parent) { syntax = "[C|L|S]|[+|-<nick>]"; TRANSLATE2(TR_TEXT, TR_END); /* we watch for a nick. not a UID. */ }