Esempio n. 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");
}
Esempio n. 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");
}
Esempio n. 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);
	}
Esempio n. 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);
	}
Esempio n. 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);
	}
Esempio n. 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);
	}
Esempio n. 7
0
CommandKill::CommandKill(Module* parent)
	: Command(parent, "KILL", 2, 2)
{
	flags_needed = 'o';
	syntax = "<nickname> <reason>";
	TRANSLATE2(TR_CUSTOM, TR_CUSTOM);
}
Esempio n. 8
0
	CommandNicklock (Module* Creator, LocalIntExt& ext) : Command(Creator,"NICKLOCK", 2),
		locked(ext)
	{
		flags_needed = 'o';
		syntax = "<oldnick> <newnick>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Esempio n. 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);
	}
Esempio n. 10
0
 CommandSetidle(Module* Creator) : SplitCommand(Creator,"SETIDLE", 1)
 {
     flags_needed = 'o';
     syntax = "<duration>";
     TRANSLATE2(TR_TEXT, TR_END);
 }
Esempio n. 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);
	}
Esempio n. 12
0
	CommandUninvite(Module* Creator) : Command(Creator,"UNINVITE", 2)
	{
		syntax = "<nick> <channel>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Esempio n. 13
0
	CommandSaquit(Module* Creator) : Command(Creator, "SAQUIT", 2, 2)
	{
		flags_needed = 'o'; Penalty = 0; syntax = "<nick> <reason>";
		TRANSLATE2(TR_NICK, TR_TEXT);
	}
Esempio n. 14
0
 CommandSetident (InspIRCd* Instance) : Command(Instance,"SETIDENT", "o", 1)
	{
		this->source = "m_setident.so";
		syntax = "<new-ident>";
		TRANSLATE2(TR_TEXT, TR_END);
	}
Esempio n. 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);
	}
Esempio n. 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);
	}
Esempio n. 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. */
	}
Esempio n. 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. */
 }