on *:PART:#:{ if ((!$istok(#MightScript #MSCR #tdc,$chan,32)) && ($nick($chan,0) < 5) && ($nick != $me)) { part $chan You need at least 5 users to keep me in your channel! } } on *:QUIT:{ var %c 1 while ($comchan($nick,%c)) { if (!$istok(#MightScript #MSCR #tdc,$comchan($nick,%c),32) && ($nick($comchan($nick,%c),0) < 5) && ($nick != $me)) { part $comchan($nick,%c) You need at least 5 users to keep me in your channel! } inc %c } } on ^*:OPEN:?:{ .ignore -pu60 $nick haltdef msg $nick $+($c1,[,$c2,Hello,$c1 $nick,$c2,! Please do not send me private messages in the future. If you need help,$chr(44) join,$c1 #MightScript,$c2,. My commands are located at,$c1,]) } on *:INVITE:#:{ msg #MSCR !invite $nick $chan } on *:CONNECT:{ if ($scon(0) == 1) { nick [MAC]MightScript .timer 1 1 server -m irc.swiftirc.net .timer 1 3 scon 2 nick [NL]MightScript .timer 1 3 server -m irc.swiftirc.net .timer 1 5 scon 3 nick [MOO]MightScript .timer 1 7 scon -at1 join #MightScript,#MSCR,#bots .timer 1 7 scon -at1 ns id Patje`-DoucheBag .timer 1 7 scon -at1 mode $me +pB } } on *:sockopen:urban.*:{ sockwrite -nt $sockname GET /define.php?term= $+ $hr($hget($sockname,lookup)) HTTP/1.1 sockwrite -nt $sockname Host: www.urbandictionary.com sockwrite -nt $sockname $crlf } on *:sockread:urban.*:{ var %urbread sockread %urbread if (*isn't defined* iswm %urbread) { $hget($sockname,sendway) $+($c1,[,$c2,No definition of,$c1 $flc($hget($sockname,lookup)) $c2,was found on $c1,urbandictionary.com]) .hdel -sw $sockname * sockclose $sockname } if (*
* iswm %urbread) { hadd -m $sockname def $replace($htmlfree(%urbread),
* iswm %priceread) { if ($hget($sockname,counter) != 10) { hadd -m $sockname counter $calc($hget($sockname,counter) + 1) hadd -m $sockname name $htmlfree(%priceread) sockread %p2 | hadd -m $sockname out $hget($sockname,out) $+($c2,$hget($sockname,name),:,$c1 $htmlfree(%p2) |) } } if ( iswm %priceread) || ($hget($sockname,counter) == 10) { $hget($sockname,sendway) $+($c1,[,$c2,Results for,$c1 $flc($hget($sockname,lookup)),] [,$replace($left($hget($sockname,out),-2),$+($chr(44),000,$chr(44),000gp),m,$+($chr(44),000gp),k),]) unset %p2 .hdel -sw $sockname * sockclose $sockname } } on *:sockopen:clan.*:{ sockwrite -nt $sockname GET /clans/search.php?search= $+ $hr($hget($sockname,lookup)) HTTP/1.1 sockwrite -nt $sockname Host: runehead.com sockwrite -nt $sockname $crlf } on *:sockread:clan.*:{ var %clanreader sockread %clanreader if (*No results were found* iswm %clanreader) { $hget($sockname,sendway) $+($c1,[,$c2,$flc($hget($sockname,lookup)),$c1 does not feature in the,$c2 Runehead.com Database,$c1,]) .hdel -sw $sockname * sockclose $sockname } if (*