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: tcleggdrop_mcpsfuncs.tcl problems..  (Read 11,988 times)

jon8

  • Participant
  • Joined in 2010
  • *
  • Posts: 1
tcleggdrop_mcpsfuncs.tcl problems..
« on: September 10, 2010, 11:30 PM »
Code
I am unable to get tcleggdrop_mcpsfuncs.tcl to work correctly. Ill explain more of whats going on after I describe my settings:

bottom of my eggdrop.conf file:
[code=tcl]
loadmodule blowfish
loadmodule uptime
source scripts/alltools.tcl
source scripts/action.fix.tcl
source scripts/tcleggdrop_mcpsfuncs.tcl
source scripts/userinfo.tcl
loadhelp userinfo.help
source scripts/relay.tcl

tcleggdrop_mcps_sitesettings.ini file:
Code: (tcl)
putlog "McEggdrop TCL Helper Functions - settings file loaded."
set mcpskey(#channel) "key"
set mcpskey(#channel) "+OK"
set mcpsprefix(defaultprefix) "+OK"
set mcpskey(defaulte) "default.key.when.non.is.found"
set mcreplyonlyinkind "false"
set mcreplyneverplaintext "true"
set mcdontlistentoplaintext "silent"
set mcmeowreply "true"
set mcautomagic "true"
set mcencryptnick "true"
set mcmaxlinelen 440

I do not get any errors when starting the bot:

[03:06] McEggdrop TCL Helper Functions - settings file loaded.
[03:06] McEggdrop TCL Helper Functions v1.00.29 loaded (replyencrypt noplainreply meowreply automagicon noplainlistensilent).

I send the command, 'putallbots relay $text' .. this is sent from my hub bot, that does not have McEggdrop loaded into it.

In which $text contains an entire line of text. On the leaf bot, the one running McEggdrop i have this script loaded:

Code: (tcl)
bind pub - !testme test
  proc test { nick uhost hand chan arg } {
putquick "PRIVMSG #prefish :Hello $nick"
}
bind bot - "relay" relay
proc relay { bot cmd text } {
	putlog "text >> $text <<"
	set section [lindex $text 0]; set name [lindex $text 1]
	putquick "PRIVMSG #channel :$text"
}

When i do !testme in any channel, the bot replies USING FISH "Hello jon8"

When using putallbots command from the hub, the bot does NOT send ANY text to #channel. It MUST BE NOTED that it does 'putlog' the text (first line after the relay procedure starts)[/code]
« Last Edit: September 10, 2010, 11:42 PM by jon8 »

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
Re: tcleggdrop_mcpsfuncs.tcl problems..
« Reply #1 on: September 11, 2010, 01:30 AM »
welcome to the site jon8.

the two things that jump out at me are:
Quote
set mcreplyneverplaintext "true"
set mcdontlistentoplaintext "silent"

the plaintext ignoring stuff is notoriously flakey, and i think i added comments in the settings file to not use them and to use the newer plaintext blocker.

but either way, best thing is to avoid all of these plaintext blocking functions and the standalone plaintext blocking script until the rest is working.

and do join #mircryption on efnet for more live help -- mircryption is a rare case where chatting online is easier to help sometimes.

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