I'm trying to write a URL catcher
but when a URL has a '?' it seem to just take everything b4 the '?'
http://www.site.com/index.php?link=link1
would return
http://www.site.com/index.php
how do I go about fixing that??
Code: Select all
bind pubm - * url_catcher
proc url_catcher {nick host hand chan arg} {
if {[set a [lsearch -regexp [split $arg] "(http)://(.*)\.(.*)"]] != -1} {
set url [lindex [split $arg] $a]
blablabla the code in here, write the $url to file or something ;)
}
}