Skip to content
General IRCd

Version Check

A TG007 community discussion started by TaReK.

Discussion 7 posts
Page 1 of 1
Open
Topic #13935 · 7 published posts · 2,788 views

i need a code which does this

 

on join version check .. if i get no version reply it automatically kicks the user who never replied for the version check .. then it turns the timer off

 

thank u !!

There's no definitive way of doing this because there is an option in mIRC to turn off responses and you also have the ability to customise the response (either a custom reply or none) so I wouldn't recommend doing this, personally.

I don't get paid to know the answer, therefore I'm far more likely to give you a straight and honest answer.

On *:Join:*:.ctcp $nick version
On *:ctcpreply:version:{

  here your code , i would do it for you , but as said by takaharu i wouldn't do it 
}

Edited Jan 30, 2010 4:04 PM by Ronan

Pomperom

as mentioned above... but if you really wanted it...

 

on @!*:JOIN:#: { .timerversion $+ $chan $+ $nick 1 10 kick $chan $nick no version response | .ctcp $nick version }
on *:PART:#: { .timerversion $+ $chan $+ $nick off }
on *:KICK:#: { .timerversion $+ $chan $+ $nick off }
on *:QUIT: { .timerversion* $+ $nick off }
on *:CTCPREPLY:VERSION: { .timerversion* $+ $nick off }

 

note... it has literally been 5 years since i have touched mIRC so i don't even know if this code is correct. If it isn't post back and someone else will amend it.

 

I don't know if you can wildcard inside the timer.

Edited Jan 31, 2010 10:53 AM by The Gate Keeper

TheGatekeeper

 

It kicks everyone ... who replies & who doesnt ... .. so its not working !!

I'm not sure if this will work, but give it a shot if you will:

on !*:JOIN:#:.ctcp $nick VERSION
on *:CTCPREPLY:VERSION*: {
  if (!$1-) {
    var %v = $comchan($nick,0)
    while (%v) {
      if ($me isop $comchan($nick,%v)) { 
        kick $v2 $nick No vesion reply detected!
      }
      dec %v
    }
  }
}

Edited Jan 31, 2010 5:57 PM by Fanfare
TheGatekeeper

 

It kicks everyone ... who replies & who doesnt ... .. so its not working !!

 

i have modified it slightly, not sure if it's better or not. check the previous post.