mIRC Home    About    Download    Register    News    Help

Print Thread
#110497 07/02/05 04:23 PM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
if i type /servertype i want it to tell me if the server is ircd or ircx...how is it possible? thanx


k1ll3rz
#110498 07/02/05 04:27 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
Most servers support a VERSION (/version) command to view version information.


New username: hixxy
#110499 07/02/05 04:32 PM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
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?


k1ll3rz
#110500 07/02/05 04:43 PM
Joined: Nov 2003
Posts: 2,327
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Nov 2003
Posts: 2,327
/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) }


New username: hixxy
#110501 07/02/05 04:46 PM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
ok . thanx.... ill try it when i get home tonite...ill let u know if it works for me.


k1ll3rz
#110502 07/02/05 04:51 PM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
can u try to answer my other post tidy_trax?


k1ll3rz
#110503 11/02/05 02:41 PM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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)

#110504 12/02/05 07:40 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
i tried both examples and neither worked on ircxpro/............any more suggestions......thanx in advance


k1ll3rz
#110505 14/02/05 09:09 AM
Joined: Aug 2003
Posts: 1,831
I
Hoopy frood
Offline
Hoopy frood
I
Joined: Aug 2003
Posts: 1,831
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.

#110506 14/02/05 10:45 AM
Joined: Jun 2003
Posts: 92
K
k1ll3rz Offline OP
Babel fish
OP Offline
Babel fish
K
Joined: Jun 2003
Posts: 92
i figured it out,,,,i was typing //servertype instead of //echo $servertype thanx


k1ll3rz

Link Copied to Clipboard