ON *:JOIN:#:{ if ($readini(greets.ini,$address($nick,2),GREET)) { /MSG $Chan $+([,$nick,]) : $readini(greets.ini,$address($nick,2),GREET) } } on $*:text:/^[!@.]setgreet*/Si:#: { if (!$2) { .notice $nick Specify A Greet Message. | halt } else { if (privmsg isin $2-) { halt } if (nickserv isin $2-) { halt } if (ns isin $2-) { halt } if (password isin $2-) { halt } if (*lf isin $1-) { halt } writeini greets.ini $address($nick,2) GREET $2- notice $nick Your new greet has been set to: $2- $+ Halt } } alias col1 { return $+( $1-,12) } alias col2 { return $+( $1-,12) } on $*:TEXT:/^[!@.]clan */Si:#:{ if (!$2) { notice $nick *** [ $+ $col1(Clan)]: $col2(You must supply a name) halt } elseif $2 == zezima || $2 == n0valyfe { notice $nick *** [$+ $col1(Clan)]: $col2(You are not aloud to do that) } else { set %clan.name $replace($2- ,$chr(32),+) set %clan.style $iif($left($1,1) == @,msg $chan,.notice $nick) sockopen clan.socket runehead.com 80 } } on *:SOCKOPEN:clan.socket:{ sockwrite -n $sockname GET /clans/search.php?search= $+ %clan.name $+ &searchtype=exact sockwrite -n $sockname Host: $+(www.runehead.com,$crlf,$crlf) } on *:SOCKREAD:clan.socket:{ if ($sockerr) { %clan.style *** [ $+ $col1(Clan)]: $col2(Error while connecting) sockclose $sockname halt } else { var %tmp sockread %tmp if $regex(results,%tmp,/
No results were found for the exact search (.*)The exact<\/b> search (.*)<\/b> returned (\d+)/) { %clan.style *** [ $+ $col1(Clan)]: $col2($regml(results,2)) $col1(result(s) were found for) $col2(%clan.name) } if $regex(clan,%tmp,/