aboutsummaryrefslogtreecommitdiff
path: root/action.fix.tcl
diff options
context:
space:
mode:
authorGravatar fireonlive2024-08-09 19:04:10 +0000
committerGravatar steering72532024-10-23 00:39:49 -0600
commit985dcb2901d2527b79976df787035425294200b9 (patch)
treed49caf539627b062c3e8406854ffbc214804661c /action.fix.tcl
init
Diffstat (limited to 'action.fix.tcl')
-rw-r--r--action.fix.tcl24
1 files changed, 24 insertions, 0 deletions
diff --git a/action.fix.tcl b/action.fix.tcl
new file mode 100644
index 0000000..13e13b4
--- /dev/null
+++ b/action.fix.tcl
@@ -0,0 +1,24 @@
+# action.fix.tcl
+#
+# Copyright (C) 2002 - 2023 Eggheads Development Team
+#
+# Tothwolf 25May1999: cleanup
+# Tothwolf 04Oct1999: changed proc names slightly
+# poptix 07Dec2001: handle irssi (and some others) "correct" messages for DCC CTCP
+
+# Fix for mIRC dcc chat /me's:
+bind filt - "\001ACTION *\001" filt:dcc_action
+bind filt - "CTCP_MESSAGE \001ACTION *\001" filt:dcc_action2
+proc filt:dcc_action {idx text} {
+ return ".me [string trim [join [lrange [split $text] 1 end]] \001]"
+}
+
+proc filt:dcc_action2 {idx text} {
+ return ".me [string trim [join [lrange [split $text] 2 end]] \001]"
+}
+
+# Fix for telnet session /me's:
+bind filt - "/me *" filt:telnet_action
+proc filt:telnet_action {idx text} {
+ return ".me [join [lrange [split $text] 1 end]]"
+}