mIRC Home    About    Download    Register    News    Help

Topic Options
#216741 - 30/11/09 11:02 AM multi login and join multi channels
komaii Offline
Bowl of petunias

Registered: 30/11/09
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

Top
#216742 - 30/11/09 11:18 AM Re: multi login and join multi channels [Re: komaii]
5618 Offline
Hoopy frood

Registered: 18/06/07
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

Top
#216743 - 30/11/09 01:36 PM Re: multi login and join multi channels [Re: 5618]
komaii Offline
Bowl of petunias

Registered: 30/11/09
Posts: 2
ahhh,

with $serverip it work.
thx

Top
#216747 - 30/11/09 05:01 PM Re: multi login and join multi channels [Re: 5618]
s00p Offline
Fjord artisan

Registered: 01/07/08
Posts: 236
Loc: Hell, Australia
$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.


Edited by s00p (30/11/09 05:15 PM)

Top
#216754 - 01/12/09 03:01 AM Re: multi login and join multi channels [Re: komaii]
Excalibur Offline
Vogon poet

Registered: 07/05/09
Posts: 139
Loc: FL, US
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.

Top