nav.gif Home » Snippets » Maztal.com ASL + Profile Link grabber

ammenul.gif
ammenur.gif
Please Register/Login to enhance your access of our site and services. We support Twitter and Facebook logins. Logging in will reduce the amount of advertisments.
ammenul.gif
ammenur.gif


ammenutopl.gif
TG007 Snippet
ammenutopr.gif
Maztal.com ASL + Profile Link grabber
Category: IRCd

About
Just a basic socket to the maztal site to grab asl information and message it to room along with profile link of webchat users.


on *:SOCKOPEN:profile:{ sockwrite -tn profile $+(GET /index.php?do=/mobile/ $+ %profile.user $+ /info/ HTTP/1.1,$crlf,Accept: */*,$crlf,Host: www.maztal.com,$crlf,Connection:  close,$crlf,$crlf) }
on *:SOCKREAD:profile:{
  var %t | sockread %t | tokenize 32 %t | if ($sockerr > 0) return
  if (*male* iswm $gettok(%t,1,32)) { set %gender $remove($gettok(%t,1,32),</div>) }
  if (* $+ $chr(40) $+ * iswm $gettok(%t,2,32)) { set %age $gettok(%t,1,32) | set %loc $true }
  if (*info_right* iswm $gettok(%t,2,32)) && (%loc == $true) { set %loc2 $true }
  if (%loc2 == $true) && (*</div>* iswm $gettok(%t,1,32)) { 
    set %lokation $remove(%t,		</div>) 
    msg %profile.room 2(?) %profile.nick is a %age year old %gender  $+ , from $iif(*</div>* iswm %lokation,Undisclosed.,$remove(%lokation,</div>)) 
    msg %profile.room (*) 2 Profile Link:12 http://maztal.com/index.php?do=/  $+ $ial( $+ %profile.nick $+ ).user $+ / 
    sockclose $sockname 
    unset %loc* 
} }
on *:JOIN:*:{ set %profile.room $chan | set %profile.nick $nick | set %profile.user $ial($nick).user | sockopen profile www.maztal.com  80 }


Comments

No Comments Posted
Sorry you must register and log-in to post comments
ammenul.gif
ammenur.gif
ammenutopl.gif
Info
ammenutopr.gif
Snippet Information
Creator:Kustom
Date Added:11/29/11
Tags:
Problem?Report Snippet
ammenul.gif
ammenur.gif



17 user(s) currently browsing site (0 members, 17 guests, 0 anonymous)
No Members Logged In

11 Users in IRCommunity
inføвøт, err0r, ●fiestýβสbỳ●, båbyġurł, DennieWennie™, Erroneous, payback, TOP™, ﴾Ɣ﴿ⓨⓢⓣⓘⓒ★§ⓟⓔⓛⓛ, danger , extremity



lhfooter.gif
TechDesigns007.com | Valid XHTML 1.0 | Valid CSS | Load Time: 0.038597 sec(s)
rfooter.gif


Latest Alert: 10.14.2011 mIRC 7.22 released
oldline
oldline
oldline
oldline