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 

running windrop with Db out mysql

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


Joined: 16 Jan 2006
Posts: 10

PostPosted: Tue Apr 07, 2009 7:46 pm    Post subject: running windrop with Db out mysql Reply with quote

hi...

possible running request sql since windrop in database but don't need package mysqltcl like example

>don't working with windrop 1.6.13 to 1.6.19 and mysqltcl-3.03

Code:

##############################
# Connexion à MySQL      #
###############################
load libmysqltcl.dll
package require mysqltcl

if { [catch {mysqlstate $mysql_handler}] } {
 if [catch {mysqlconnect -host $host -user $user -password $password -db $db} mysql_handler] {
  putquick "PRIVMSG $chanadd :Error MySQL !!"
  putlog "PREDB : Error connexion MySQL !"
 }
} else {
  putlog "PREDB: MYSQL connected !"
}

bind pub - !test pub:test

proc pub:test {nick uhost handle channel arg } {
global Hdecalage chanadd chanpre botnetkick1 prebotnick erreur
if { [catch {mysqlstate $mysql_handler}] } {
 if [catch {mysqlconnect -host $host -user $user -password $password -db $db} mysql_handler] {
  putlog "PREDB : Error MySQL !"
 }
} else {
  putlog "PREDB : Connect MySQL !"
}
Back to top
View user's profile Send private message
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