mIRC Homepage
Posted By: k1ll3rz Checking wut server - 07/02/05 04:23 PM
if i type /servertype i want it to tell me if the server is ircd or ircx...how is it possible? thanx
Posted By: tidy_trax Re: Checking wut server - 07/02/05 04:27 PM
Most servers support a VERSION (/version) command to view version information.
Posted By: k1ll3rz Re: Checking wut server - 07/02/05 04:32 PM
i understand that but i want to use a comand like $servertype in a message so i can use it in an alias when i connect so if the servers ircd i want it to do one command but if its ircx i want it to do another command?
Posted By: tidy_trax Re: Checking wut server - 07/02/05 04:43 PM
/debug shows that ircx servers send "IRCX" in raw 005:

Quote:
<- :irc.server.here 005 tidy_trax IRCX CHANTYPES=%#&+ MODES=6 etc


So catch raw 005:

Code:
raw 005:*:{
  if ($2 === IRCX) { set %servertype $+ $cid ircx }
  else { set %servertype $+ $cid ircd }
}
on *:disconnect:{ unset %servertype $+ $cid }
alias servertype { return $eval($+(%,servertype,$cid),2) }
Posted By: k1ll3rz Re: Checking wut server - 07/02/05 04:46 PM
ok . thanx.... ill try it when i get home tonite...ill let u know if it works for me.
Posted By: k1ll3rz Re: Checking wut server - 07/02/05 04:51 PM
can u try to answer my other post tidy_trax?
Posted By: Iori Re: Checking wut server - 11/02/05 02:41 PM
Dob't forget there may be several 005's sent, unless the IRCX token is in the last one, it will be unset again wink

  • raw $005:/IRCX/i:set %servertype $+ $cid IRCX
    on *:logon:*:set %servertype $+ $cid IRCd
    on *:start:unset %servertype.*
    alias servertype return $($+(%,servertype,$cid),2)
Posted By: k1ll3rz Re: Checking wut server - 12/02/05 07:40 AM
i tried both examples and neither worked on ircxpro/............any more suggestions......thanx in advance
Posted By: Iori Re: Checking wut server - 14/02/05 09:09 AM
Worked fine on these

  • Chat-UK
    //echo -a $iif($network,$v1,$server) -=- $($+(%,servertype,$cid),2) | version
    chat-uk.ircxpro.com -=- IRCX
    -
    IRCXPRO1.2.1546 chat-uk.ircxpro.com IRCXpro by Paul Heinlein
  • wolfirc
    //echo -a $iif($network,$v1,$server) -=- $($+(%,servertype,$cid),2) | version
    WolfIRC -=- IRCX
    -
    IRCXPRO1.2.1537 United.ircxpro.com IRCXpro by Paul Heinlein
  • DOOMNET
    //echo -a $iif($network,$v1,$server) -=- $($+(%,servertype,$cid),2) | version
    DOOMNET -=- IRCX
    -
    IRCXPRO1.2.1546 DOOMNET.ircxpro.com IRCXpro by Paul Heinlein


Check the server you're using sends a raw 005 and that IRCX is one of the tokens. You will find something like IRCX CHANTYPES=%#&+ MODES=6 NOQUIT SAFELIST WALLCHOPS NICKLEN=20 MAXCHANNELS=6 NETWORK=DOOMNET SILENCE=65 WATCH=128 are available on this server in status window as you logon.
Posted By: k1ll3rz Re: Checking wut server - 14/02/05 10:45 AM
i figured it out,,,,i was typing //servertype instead of //echo $servertype thanx
© mIRC Discussion Forums