DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Bug with tcleggdrop_mcpsfuncs.tcl not handling bind arguments correctly  (Read 8,818 times)

[piLL]

  • Participant
  • Joined in 2007
  • *
  • Posts: 1
Basically I have found a bug with tcleggdrop_mcpsfuncs.tcl not handling binds correctly
Here is 2 examples to illustrate what I mean

Example 1:
Code
bind pub -|- !test0r testing; proc testing args { putlog $args }
This will work in an encrypted channel, no problem

Example 2:
Code
bind pub -|- !test0r {testing $_pub1; #}; proc testing args { putlog $args }
This does not work in an encrypted channel

From looking at the code in tcleggdrop_mcpsfuncs.tcl, I see that it is "staticaly" handling the bind arguments, so it *always* expects "nickname uhost handle channel text" for pub/pubm binds (for example). However, instead of doing "generic" unbinds/"re"-binds, it could do a search of [binds] to get the "real" arguments if they are there, and if no "special" arguments are specified (as shown in Example 2), it should default to "nickname uhost handle channel text" bind arguments.

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
i think i see what you mean.. i am not an eggdrop or tcl expert, so it's a miracle i ever got the eggdrop bind interception to work at all (i had help). maybe someone out there can add code to deal with these unusual special argument cases?

Original address: https://www.donationcoder.com/forum/index.php?topic=7640.0