mIRC Home    About    Download    Register    News    Help

Print Thread
#103083 15/11/04 10:29 PM
Joined: Nov 2004
Posts: 2
L
Lahgoon Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Nov 2004
Posts: 2
How do i hide the standard Reply (VERSION mIRC v6.16 Khaled Mardam-Bey) and replase it with one i creaded myself? :P (noob q.) grin

#103084 15/11/04 10:39 PM
Joined: Jun 2003
Posts: 5,024
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Jun 2003
Posts: 5,024
You cannot edit out the default CTCP version reply, that's considered lame by the majority, if you're using Khaled's work then he deserves credit. It also, probably inadvertently, prevents abuse.

You can however ADD to the version reply, with something like:

ctcp *:version:?:/ctcpreply $nick VERSION SuperScript v1.3.37

Which then returns:

[Nickname VERSION reply]: mIRC v6.16 Khaled Mardam-Bey
[Nickname VERSION reply]: SuperScript v1.3.37


You may also want to see /help ctcp events for further info.

Regards,


Mentality/Chris
#103085 15/11/04 10:48 PM
Joined: Nov 2004
Posts: 2
L
Lahgoon Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
L
Joined: Nov 2004
Posts: 2
ok, thanks for the help

#103086 16/11/04 05:02 AM
Joined: Sep 2003
Posts: 4,230
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Sep 2003
Posts: 4,230
As was said above i think it is a bit lame to hide the real version your using, but i guess there might be some legit reson for it, I used changing the version to catch people trying the 6 point something exploit on me, but beyond that cant think of much reasons. Anyway heres a cutdown of the code i have i check and do some other things but have cut them out, this was tested and seemed to work ok.
Code:
 
on *:START:DMT.Setup
on *:CONNECT:DMT.Setup
on *:CLOSE:@DMT.Debug*:{ .timer 1 0 DMT.Setup }
;
alias DMT.Setup {
  window -ehn @DMT.Debug. [ $+ [ $network ] ]
  .debug -inpt @DMT.Debug. [ $+ [ $network ] ] DMT.Monitor
  unset %DMT.Version.Sent.To.*
}
;
Menu @DMT.Debug.* {
  Total Lines Now $line($active,0) : { }
  -
  Clear Window                     : clear
  -
  Lock Visable                     : window -w $active
  Make Hidden                      : window -h $active
}  
;
alias DMT.Monitor {
  tokenize 32 $1-
  var %nick = $gettok($mid($2,2),1,33)
  if ($1 == <-) && ($3 == PRIVMSG) && ($5 == :VERSION) {
    if ( [ [ $+(%,DMT.Version.Sent.To.,%nick) ] ] != $true ) {
      set [ $+(%,DMT.Version.Sent.To.,%nick) ] $true
      .timer 1 10 unset [ $+(%,DMT.Version.Sent.To.,%nick) ]
      ;
      timer 1 1 ctcpreply %nick VERSION Well if you must know its mIRC v $+ $version by Khaled Mardam-Bey (and a damn good version at that!)
      ;
    }
    .ignore -tu1 $mid($2,2)
  }
  return $1-
}
 


I cant remember why i record the person who sends me the version request and ignore them for 10 seconds, but i would hazzard a guess that its to stop someone trying to flood me off with version request.


Link Copied to Clipboard