Example #1
0
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");
}
Example #2
0
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");
}
Example #3
0
	CommandChgident(Module* Creator) : Command(Creator,"CHGIDENT", 2)
	{
		allow_empty_last_param = false;
		flags_needed = 'o';
		syntax = "<nick> <newident>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Example #4
0
	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);
	}
Example #5
0
	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);
	}
Example #6
0
	CommandChgname(Module* Creator) : Command(Creator,"CHGNAME", 2, 2)
	{
		allow_empty_last_param = false;
		flags_needed = 'o';
		syntax = "<nick> <newname>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Example #7
0
CommandKill::CommandKill(Module* parent)
	: Command(parent, "KILL", 2, 2)
{
	flags_needed = 'o';
	syntax = "<nickname> <reason>";
	TRANSLATE2(TR_CUSTOM, TR_CUSTOM);
}
Example #8
0
	CommandNicklock (Module* Creator, LocalIntExt& ext) : Command(Creator,"NICKLOCK", 2),
		locked(ext)
	{
		flags_needed = 'o';
		syntax = "<oldnick> <newnick>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Example #9
0
	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);
	}
Example #10
0
 CommandSetidle(Module* Creator) : SplitCommand(Creator,"SETIDLE", 1)
 {
     flags_needed = 'o';
     syntax = "<duration>";
     TRANSLATE2(TR_TEXT, TR_END);
 }
Example #11
0
 CommandSetident(Module* Creator) : Command(Creator,"SETIDENT", 1)
	{
		allow_empty_last_param = false;
		flags_needed = 'o'; syntax = "<new-ident>";
		TRANSLATE2(TR_TEXT, TR_END);
	}
Example #12
0
	CommandUninvite(Module* Creator) : Command(Creator,"UNINVITE", 2)
	{
		syntax = "<nick> <channel>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Example #13
0
	CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2)
	{
		flags_needed = 'o'; Penalty = 0; syntax = "<nick> <reason>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Example #14
0
 CommandSetident (InspIRCd* Instance) : Command(Instance,"SETIDENT", "o", 1)
	{
		this->source = "m_setident.so";
		syntax = "<new-ident>";
		TRANSLATE2(TR_TEXT, TR_END);
	}
Example #15
0
	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);
	}
Example #16
0
	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);
	}
Example #17
0
	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. */
	}
Example #18
0
 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. */
 }