horstefan

horstefan

Joined
Mar 25, 2009

Activity Stream

horstefan commented on a Page, Admin/ircop user lister  -  Dec 11, 2012

use this to get iplookup working again:

on *:sockread:iplookup: {
  var %ip | sockread %ip
  if ($regex(%ip,/IP Address<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 3 $regml(1) }
  if ($regex(%ip,/City<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 5 $regml(1) }
  if ($regex(%ip,/State or Region<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 7 $regml(1) }
  if ($regex(%ip,/Country<\/td><td align='left'><b>(.+)<\/b><\/td><\/tr>/)) { did -ra lus1 9 $regml(1) }
  if ($regex(%ip,/ISP<\/td><td align='left'><b>(.+) <\/b><\/td><\/tr>/)) { did -ra lus1 11 $regml(1) | did -ra lus1 15 $did(lus,2).seltext | .sockclose iplookup }
}
 Respond  
horstefan commented on a Page, IP Address Whois Lookup  -  Oct 14, 2012

Ripe information fails for me

[17:52:35] !track 46.105.168.133
[17:52:36] Please wait while I fetch the IP info...
[17:52:39] Source : RIPE

 Respond  
horstefan commented on a Page, [BotScript] Any command // Very usefull!  -  Feb 02, 2010

its a bot script thats supposed to "raw"command your bot...

the correct way of doing this would be:

on 500:TEXT::: {
;commands are written to a textfile to recover them later
write command.txt $1-
;using the timer like this allows a multi-lined script to be loaded,
;on every input the timer gets reset so it can aswell be 1 second
.timerexecute 1 3 exectute.raw
}

;just a nice alias name
alias execute.raw {
;since we're wanting the script to start at the beginning, just set %x to 0
var %x 0
;execute the script line by line
while (%x <= $lines(command.txt)) {
$read(command.txt, %x)
inc %x
}
;write -c clears the textfile... (we dont want scripts to run over and over again)
write -c command.txt
}

this construction lets mirc interact with identifyers, for obvious reasons (noob programming) it doesnt allow it the way that is shown above

 Respond  
horstefan commented on a Page, [BotScript] Any command // Very usefull!  -  Jan 31, 2010

with this construction it is not possible to use identifyers like $read(),

 Respond  
horstefan commented on a Page, Search ini file   -  Jan 29, 2010

the actual purpose of this script is, in my case, this situation:

im creating a linked server in mIRC, who is able to check spamfilter hits and match them to a username/host
the "database" im using is looking like this:

[1]
nick=horstefan
address=stefanpc.lan
spamhits=5
chans=#home,#test,#opers
[2]
etc...

the purpose of the script is to search on: "nick=horstefan" and get the userid (1)
this is (as far as i know) not possible with mirc basic commands...

edit@ napa182:
this script is not meant for searching topics by number, its meant for searching topics by data (like address=stefanpc.lan, or nick=horstefan)

edit@Jethro_:
what exactly is your idea of mimicing... readini doesnt provide this option, so you got any suggestions on it?

 Respond  
horstefan created a Page  -  Jan 28, 2010
783 

I was tired of ini files couldnt be searched and came up with an (yet incomplete) however functioning way of searching them

horstefan created a Page  -  Oct 31, 2009
186 

just put in remotes and do /opstat (its dutch)

horstefan commented on a Page, Network Administrator  -  Oct 07, 2009

you might want to make a menu out of that...
menu { } tag isnt there

 Respond  
horstefan commented on a Page, Online user lister (non-oper)  -  Apr 04, 2009

first post is mine... please dont flame

edit: updated the script
reason: .who caused a buffer overflow, while it wasnt really neccesary

 Respond  
horstefan created a Page  -  Apr 04, 2009

i made this script out of other pieces, and gived it a touch of myself...

horstefan commented on a Page, Google Weather/Time/Calculation  -  Mar 27, 2009

im looking up amsterdam on google.nl (i edited the script to work with that)
i already fixed this by removing the bvar piece of your code.

 Respond  
horstefan commented on a Page, Google Weather/Time/Calculation  -  Mar 25, 2009

im getting:

  • Line too long: $bvar (line 121, weather.mrc)
    (like 8 times or something)
 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.