# HG changeset patch # User Matti Hamalainen # Date 1594321636 -10800 # Node ID f85b5c57229273d8778a94877c604f51241027a4 # Parent 537df683836c22ad2a8bcc4480c695c345bd3151 feeds: Add configuration setting feeds_cmd_name. diff -r 537df683836c -r f85b5c572292 config.feeds.example --- a/config.feeds.example Thu Jul 09 13:41:46 2020 +0300 +++ b/config.feeds.example Thu Jul 09 22:07:16 2020 +0300 @@ -26,6 +26,10 @@ } +# Name of the command used for help texts +set feeds_cmd_name "!feeds" + + # Initialization proc called only by feeds.tcl proc feeds_init { } { # Bind commands diff -r 537df683836c -r f85b5c572292 feeds.tcl --- a/feeds.tcl Thu Jul 09 13:41:46 2020 +0300 +++ b/feeds.tcl Thu Jul 09 22:07:16 2020 +0300 @@ -54,8 +54,8 @@ proc feeds_smsg {apublic anick achan amsg {aargs {}}} { - global feeds_preferredmsg - set amsg [string map [list "@cmd@" "!feeds"] $amsg] + global feeds_preferredmsg feeds_cmd_name + set amsg [string map [list "@cmd@" $feeds_cmd_name] $amsg] utl_msg_args $feeds_preferredmsg $apublic $anick $achan $amsg $aargs }