Hi !
I have a Problem with a search script i`ve written...
I have the script with different commands and urls, but i use only one of them here to explain you my Problem.
(this bot is for a bot in a channel where we talk about Magic the Gathering..)
The script:
bind pub - .info infosearch
proc infosearch { nick uhost hand chan args } {
putchan $chan http://magiccards.info/query.php?cardname=$args
}
This works fine, if there is only 1 keyword to search:
(@sceada) .info Lotus
(@|magicbot|) http://magiccards.info/query.php?cardname=Lotus
But now my Problem:
when there are 2 Words, it doesnt work :
(@sceada) .info Black Lotus
(@|magicbot|) http://magiccards.info/query.php?cardname={Black Lotus}
But i want the Bot to give out the 2 Words with an "_" between...
(http://magiccards.info/query.php?cardname=Black_Lotus)
how can i make this ?
(or even for more words...)
(im sorry for my bad english, but i`m from Austria...)
mfg, sceada