summaryrefslogtreecommitdiffstats
path: root/bridge/irc/handlers.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/irc/handlers.go')
-rw-r--r--bridge/irc/handlers.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/bridge/irc/handlers.go b/bridge/irc/handlers.go
index 987df2c5..74db7685 100644
--- a/bridge/irc/handlers.go
+++ b/bridge/irc/handlers.go
@@ -243,6 +243,7 @@ func (b *Birc) handlePrivMsg(client *girc.Client, event girc.Event) {
func (b *Birc) handleRunCommands() {
for _, cmd := range b.GetStringSlice("RunCommands") {
+ cmd = strings.ReplaceAll(cmd, "{BOTNICK}", b.Nick)
if err := b.i.Cmd.SendRaw(cmd); err != nil {
b.Log.Errorf("RunCommands %s failed: %s", cmd, err)
}