diff options
| author | 2025-11-26 17:10:21 -0700 | |
|---|---|---|
| committer | 2025-11-26 17:10:21 -0700 | |
| commit | 28a28fb1ea412b2a3bb95c1e96b9d3d81eff176a (patch) | |
| tree | 030b233eca0f293d07c7f611b67dd599e24d99fa | |
| parent | space2tab (diff) | |
convert reminder to tell if theyre gone
| -rw-r--r-- | remind.tcl | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -81,7 +81,13 @@ proc printReminder {reminderId {tonick ""} {fire "false"}} { set what [lindex $reminder 4] if {$fire} { - putserv "PRIVMSG $chan :\[remind\] $who: $what" + if {[onchan $who $chan]} { + putserv "PRIVMSG $chan :\[remind\] $who: $what" + } else { + putserv "PRIVMSG $chan :!tell $who \[remind\] $what" + #tell {nick uhost hand chan text} + tell $who "" "" $chan "$who \[remind\] $what" + } } else { putserv "NOTICE $tonick :\[remind\] $reminderId: for $who at $when: $what" } |
