eggdrop icon indicating copy to clipboard operation
eggdrop copied to clipboard

New functionality for MSG(M)/PUB(M) BINDS with stripcodes support

Open ZarTek-Creole opened this issue 3 years ago • 0 comments

Several years that I am often confronted with some annoying things:

IRC / Private message triggers and colors / bold / underline / style

If I want to do this for example: bind pub o !op pub:op

The trigger works well on "!op" nice on the other hand this is strict because the user of the code used can be automatic colors on its irc client and will send "!op" with bold or / and colors etc. It will not work and it is normal

Now if I want to make this less strict the solutions are not pleasant to my knowledge. like this

bind pubm  o "*!*op*" pub:op

or

bind pubm  o "*" pub:op
proc  pub:op {nick uhost hand chan text} {
  set text [stripcodes * $text]
  if { [lindex $text 0] == "!op" } { ... }
}

OR

unbind raw - PRIVMSG *raw:irc:msg
unbind raw - PRIVMSG *raw:PRIVMSG
bind raw - PRIVMSG striprivmsg
proc striprivmsg {f k a} {
  set a [stripcodes * $a]
  *raw:irc:msg $f $k $a
  *raw:PRIVMSG $f $k $a
}

Or other things that sting in the eyes

I would like to have the possibility of having the stripcode directly in the bind function, I do not know the best faction to integrate it?

New binds PUB(M) and MSG(M) seem to be a lot of repetition for little?

One more option in BIND? Like bind <type> <flags> <keyword/mask> [proc-name] to bind <type> <flags> <keyword/mask> [options] [proc-name] ?

Another idea?

I know that I am not the only one to find this constraint very annoying.

  • http://forum.egghelp.org/viewtopic.php?t=12944

ZarTek-Creole avatar Sep 14 '21 20:09 ZarTek-Creole