mIRC Home    About    Download    Register    News    Help

Print Thread
#191212 05/12/07 07:43 AM
Joined: Aug 2006
Posts: 60
S
Babel fish
OP Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
Code:
alias addmember {
  echo -a writeini -n $scriptdir $+ REBot.ini members $calc($eval($ini($scriptdir $+ REBot.ini,members,0),2) + 1) $1
  writeini -n $scriptdir $+ REBot.ini members $calc($eval($ini($scriptdir $+ REBot.ini,members,0),2) + 1) $1
  .notice $2 $1 has been added.
  flushini $scriptdir $+ REBot.ini
}

The syntax is /addmember <newmember> <person who added them>
This alias is called in an on text event. The echo gives the expected result, there are no error replies and the .notice does its thing. When I check the ini file, it is not changed. What's going on?
I use mIRC 6.21 on Windows XP Home SP2.

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

If there are spaces in the path to the ini file, use quotes...

writeini -n $qt($scriptdirREBot.ini) members $calc($eval($ini($scriptdirREBot.ini,members,0),2) + 1) $1

Joined: Aug 2006
Posts: 60
S
Babel fish
OP Offline
Babel fish
S
Joined: Aug 2006
Posts: 60
Thanks smile


Link Copied to Clipboard