Alias - 10/08/11 05:48 PM
I have the following alias
econcalmsg {
var %i = $scon(0)
while (%i > 0) {
scon %i
if ($readini(file.ini,advert,$network) !== $null) { msg $v1 $1- }
dec %i
}
}
tradesmsg {
var %i = $scon(0)
while (%i > 0) {
scon %i
if ($readini(file.ini,trades,$network) !== $null) { msg $v1 $1- }
dec %i
}
}
and here is my file.ini
[advert]
network1=#channel
network2=#channel
[trades]
network1=#channel
network2=#channel,#channel
I can get the econcalmsg to work ok but not the tradesmsg one. What am I doing wrong?
econcalmsg {
var %i = $scon(0)
while (%i > 0) {
scon %i
if ($readini(file.ini,advert,$network) !== $null) { msg $v1 $1- }
dec %i
}
}
tradesmsg {
var %i = $scon(0)
while (%i > 0) {
scon %i
if ($readini(file.ini,trades,$network) !== $null) { msg $v1 $1- }
dec %i
}
}
and here is my file.ini
[advert]
network1=#channel
network2=#channel
[trades]
network1=#channel
network2=#channel,#channel
I can get the econcalmsg to work ok but not the tradesmsg one. What am I doing wrong?