eggheads / eggdrop

The Eggdrop IRC Bot
GNU General Public License v2.0
510 stars 84 forks source link

pubm : eggdrop reacts to its own actions #1314

Closed crazycatdevs closed 2 years ago

crazycatdevs commented 2 years ago

Related to previous issue (#1313), making my tests, my script made the eggdrop flood:

08:45:21  * CrazyCat does a test 2
08:45:22 <Jarvis> * <CrazyCat> does a test 2
08:45:24 <Jarvis> <CrazyCat>  ACTION does a test 2 (m)
08:45:24 <Jarvis> <Jarvis> * <CrazyCat> does a test 2 (m)
08:45:25 <Jarvis> <Jarvis> <CrazyCat> does a test 2
08:45:27 <Jarvis> <Jarvis> <CrazyCat>  ACTION does a test 2 (m) (m)
08:45:29 <Jarvis> <Jarvis> <Jarvis> * <CrazyCat> does a test 2 (m) (m)
08:45:31 <Jarvis> <Jarvis> <Jarvis> <CrazyCat> does a test 2 (m)
08:45:33 <Jarvis> <Jarvis> <Jarvis> <CrazyCat>  ACTION does a test 2 (m) (m) (m)
08:45:35 <Jarvis> <Jarvis> <Jarvis> <Jarvis> * <CrazyCat> does a test 2 (m) (m) (m)
08:45:38 <Jarvis> <Jarvis> <Jarvis> <Jarvis> <CrazyCat> does a test 2 (m) (m)

Script used:

bind ctcp - "ACTION" tact
bind pub - * tpub
bind pubm - * tpubm

proc tact {nick uhost hand chan key text} {
   putserv "PRIVMSG $chan :* <$nick> $text"
}
proc tpub {nick uhost hand chan text} {
   putserv "PRIVMSG $chan :<$nick> $text"
}
proc tpubm {nick uhost hand chan text} {
   putserv "PRIVMSG $chan :<$nick> $text (m)"
}
crazycatdevs commented 2 years ago

Ok, this is not an issue... CAP echo-message is the culpry, normal :)