egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Blowfish weird problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
ka0n
Voice


Joined: 19 Jan 2004
Posts: 13

PostPosted: Fri Apr 07, 2006 7:34 pm    Post subject: Blowfish weird problem Reply with quote

Hi guys,

I've create this procedure that handles outgoing msg to diff chans and i want my bot to switch between 2 blowkeys, #chan and #chan-ops, in chan i use blowkey "LOL" and in #chan-ops "101". With windrop (1.6.18+nosharefix) everything seems to run smooth and easy but in *nix (tried with 1.16.17 and 1.6.18RC1) all the problems come up. The same script doesn't work there, it always uses the blokey "LOL" in both chans.

Here is the proc.
Code:

set blow_key "LOL"
set blow_key_op_chan "101"
set chans "#chan #chan2"
set admin_chan "#chan-ops"

proc msg_out {who what} {
global admin_chan blow_key blow_key_op_chan
   if {![string match -noc "*$admin_chan*" $who]} {set what [encrypt $blow_key $what]
   } else {set what [encrypt $blow_key_op_chan $what]}
   putserv "privmsg $who :+OK $what"
}

proc testing {nick host hand arg} {
global admin_chan
msg_out "$admin_chan" "testing"

}


Anyone got ideas?

Thanks for the help guys!
Back to top
View user's profile Send private message
De Kus
Revered One


Joined: 15 Dec 2002
Posts: 1361
Location: Germany

PostPosted: Mon Apr 10, 2006 10:56 am    Post subject: Reply with quote

I see only one thing that might cause an TCL error, but none that could cause your described problem.
always use full parameter names. Some TCL compilations (at least I believe its a configure thing of TCL install) dont like even unique shortcuts. Try using -nocase instead of -noc Smile.
_________________
De Kus
StarZ|De_Kus, De_Kus or DeKus on IRC
Copyright © 2005-2009 by De Kus - published under The MIT License
Love hurts, love strengthens...
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber