Hi there! I have a bit of a problem, with the modes on a channel. I have an IRCbot running on a UnrealIRCD network. How do I get the modes of the channel? Like, mtnr. The purpose? I want to check if the channel is registered, else, leave the channel again. Can anyone explain to me how this is possib...
I try this: package require mysqltcl set mysql(conn) [mysqlconnect -user user -db tbot -password pass] foreach name [mysqlsel $mysql(conn) "SELECT name FROM channels" -list] { putquick "PRIVMSG $chan :$name " } mysqlclose $mysql(conn) There are 3 records in the database, but it o...
Hi everybody, I have been working with mysqltcl for a few days now, but I just can't get it done! :cry: What I am looking for, is that the bot join several channels which are in a MySQL database. The table is called channels. It has 2 elements: ID and NAME. Name is the name of the channel. Which one...
Hi all! I just started to work with mysqltcl, but I can't find the error. I have the following code: proc test {nick host hand chan arg} { package require mysqltcl set mysql(conn) [mysqlconnect -host localhost -user tbot -db tbot -password xxxxxxx] [b][u]set query "SELECT id FROM channels WHERE...
Hi all, I want to execute an MySQL query with the channelname in the query, like join.php?chan=$chan. All sounds pretty neat, but MySQL / PHP does not support the # sign. My question is, how do I remove the # in front of the channel to execute the MySQL query: Example ----------- Bot is in #T-Xorcis...
Well Sir_Fz, it goes to that procedure... thanks for that. Only.. It allways say that I haven't got @ in the channel, and then parts. Do you have any idea of what I am doing wrong? I guess the code is ok? if I do this: } else { putquick "PRIVMSG $chan :Nick = $nick" putquick "PRIVMSG ...