Added all public channels. Refactored action listener to use a list for ease of maintenance.

This commit is contained in:
Thorsten Pfister 2019-02-08 18:54:53 +01:00
parent dd9139795c
commit fb955f0162

View File

@ -17,26 +17,54 @@
#ACTION {^You cre-tell:%1} {#LINE {LOG} {$chat_file}}; #ACTION {^You cre-tell:%1} {#LINE {LOG} {$chat_file}};
#ACTION {^(Playerkillers) %1 wisps{:|} %2} { #VAR {talker_channels} {
#if {"$talker_log_toggle" == "1"} { {adventurers}{^(Adventurers)}
#LINE {LOG} {$chat_file} {amPalaceGuard}{^(Ankh-MorporkPalaceGuard)}
}; {apex}{^(Apex)}
}; {assassins}{^(Assassins)}
#ACTION {^(Thieves) %1 wisps{:|} %2} { {atuin}{^(A'Tuin)}
#if {"$talker_log_toggle" == "1"} { {conlegiumSicariorum}{^(ConlegiumSicariorum)}
#LINE {LOG} {$chat_file} {dead}{^(Dead)}
}; {djelianGuard}{^(DjelianGuard)}
}; {duchessSaturdaysMusketeers}{^(DuchessSaturday'sMusketeers)}
#ACTION {^(Wizards) %1 wisps{:|} %2} { {fish}{^(Fish)}
#if {"$talker_log_toggle" == "1"} { {gapp}{^(Gapp)}
#LINE {LOG} {$chat_file} {gufnork}{^(Gufnork)}
}; {hashishim}{^(Hashishim)}
}; {hat}{^(Hat)}
#ACTION {^(Igame) %1 wisps{:|} %2} { {hublandishBarbarians}{^(HublandishBarbarians)}
{hunters}{^(Hunters)}
{igame}{^(Igame)}
{imperialGuard}{^(ImperialGuard)}
{intermud}{^(Intermud)}
{klatchianForeignLegion}{^(KlatchianForeignLegion)}
{lancreHighlandRegiment}{^(LancreHighlandRegiment)}
{manoRossa}{^(ManoRossa)}
{ninjas}{^(Ninjas)}
{one}{^(One)}
{pishe}{^(Pishe)}
{playerkillers}{^(Playerkillers)}
{playtesters}{^(Playtesters)}
{priests}{^(Priests)}
{quiz}{^(Quiz)}
{samurai}{^(Samurai)}
{sandelfon}{^(Sandelfon)}
{sek}{^(Sek)}
{thieves}{^(Thieves)}
{two}{^(Two)}
{warriors}{^(Warriors)}
{weaponMastersCourt}{^(WeaponMasters'Court)}
{witches}{^(Witches)}
{wizards}{^(Wizards)}
};
#FOREACH {$talker_channels[%*]} {talker_channel} {
#ACTION {$talker_channel %1 wisps{:|} %2} {
#if {"$talker_log_toggle" == "1"} { #if {"$talker_log_toggle" == "1"} {
#LINE {LOG} {$chat_file} #LINE {LOG} {$chat_file}
}; };
}; };
}
#ALIAS {talker log %1} { #ALIAS {talker log %1} {
#if {%1 == "on"} { #if {%1 == "on"} {