|
|
k1ll3rz
|
k1ll3rz
|
if i type /servertype i want it to tell me if the server is ircd or ircx...how is it possible? thanx
|
|
|
|
Joined: Nov 2003
Posts: 2,321
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,321 |
Most servers support a VERSION (/version) command to view version information.
|
|
|
|
k1ll3rz
|
k1ll3rz
|
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?
|
|
|
|
Joined: Nov 2003
Posts: 2,321
Hoopy frood
|
Hoopy frood
Joined: Nov 2003
Posts: 2,321 |
/debug shows that ircx servers send "IRCX" in raw 005: <- :irc.server.here 005 tidy_trax IRCX CHANTYPES=%#&+ MODES=6 etc So catch raw 005: 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) }
|
|
|
|
k1ll3rz
|
k1ll3rz
|
ok . thanx.... ill try it when i get home tonite...ill let u know if it works for me.
|
|
|
|
k1ll3rz
|
k1ll3rz
|
can u try to answer my other post tidy_trax?
|
|
|
|
Iori
|
Iori
|
Dob't forget there may be several 005's sent, unless the IRCX token is in the last one, it will be unset again  - raw $005:/IRCX/i:set %servertype $+ $cid IRCX
on *:logon:*:set %servertype $+ $cid IRCd on *:start:unset %servertype.* alias servertype return $($+(%,servertype,$cid),2)
|
|
|
|
k1ll3rz
|
k1ll3rz
|
i tried both examples and neither worked on ircxpro/............any more suggestions......thanx in advance
|
|
|
|
Iori
|
Iori
|
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.
|
|
|
|
k1ll3rz
|
k1ll3rz
|
i figured it out,,,,i was typing //servertype instead of //echo $servertype thanx
|
|
|
|
|
|