mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2009
Posts: 2
K
komaii Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Nov 2009
Posts: 2
Hi,

maybe someone can help me, i wrote this script but it doesn't work. The login to the servers is working but the join to the channels not, here the script:
[script]
n1=on *:START: {
n2= server 192.168.81.220:6667 password
n3= server -m 192.168.82.82:6667 password
n4= server -m 80.120.19.252:6667 password
n5=}
n6=On *:Connect:{
n7= if ($server == 192.168.81.220) {
n8= /join #dev,#intern
n10= }
n11= if ($server == 192.168.82.82) {
n12= /join #dev,#intern
n14= }
n15= if ($server == 80.120.19.252) {
n16= /join #intern,#dev
n17= }
n18=}

lg,
tom

Joined: Jun 2007
Posts: 933
5
Hoopy frood
Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
You're probably looking for $serverip instead of $server (which returns the reverse DNS entry if there is one).
Alternatively you may want to use $network instead of $serverip

Joined: Nov 2009
Posts: 2
K
komaii Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
K
Joined: Nov 2009
Posts: 2
ahhh,

with $serverip it work.
thx

Joined: Jul 2008
Posts: 236
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Jul 2008
Posts: 236
$server doesn't necessarily return the reverse name. It returns whatever is in the IRCd's "hostname" configuration, whatever raw 004 gives the client, eg: <- :narf.be.eu.ofloo.org 004 z0r narf.be.eu.ofloo.org hybrid-7.2.3 CDGabcdfghiklnorsuwxyz biklmnopstveIh bkloveIh

... could be anything, really. It's independent of DNS.

Last edited by s00p; 30/11/09 05:15 PM.
Joined: May 2009
Posts: 139
E
Vogon poet
Offline
Vogon poet
E
Joined: May 2009
Posts: 139
How about:
Code:
on *:START: {
  server 192.168.81.220:6667 password -j #dev,#intern
  server -m 192.168.82.82:6667 password -j #dev,#intern
  server -m 80.120.19.252:6667 password -j #dev,#intern
}


- Excalibur
- Good and Evil, there never is one without the other.

Link Copied to Clipboard