Ok, So I am working on a script for simple mod commands and was wondering, is there a way to write to an ini file multiple sections IE this is the default example :
Code:
/writeini [-n] <inifile> <section> <item> <value>


This is my code:
Code:
on *:text:!ban*:#: {
	var %permUser == $2
	var %permSet == $readini(permlist.ini,#michaelukz,%permUser)
	if (permSet < 6) {
		msg $chan /me Error you do not have sufficient permissions!
		return
	}
	elseif ($2 == $null) {
		msg $chan /me Error No user selected
	}
	elseif ($3 == $null) {
		msg $chan Error no time selected
	}
	elseif ($4 == $null) {
		msg $chan /me No reason selected, writing default.
	}
	else {
		writeini -n BanList.ini #Michaelukz Bans $2 = 1:Reason: $4 Time:$3
		msg $chan /me User has been banned!
	}
}


It doesn't respond / do anything at all Here is the output from the SERVER not CHANNEL logs
Code:
VAR Unknown command
-
VAR Unknown command
-
IF Unknown command
-
MSG Unknown command
-
RETURN Unknown command
-
} Unknown command
-
ELSEIF Unknown command
-
MSG Unknown command
-
} Unknown command
-
ELSEIF Unknown command
-
MSG Unknown command
-
} Unknown command
-
ELSEIF Unknown command
-
MSG Unknown command
-
} Unknown command
-
ELSE Unknown command
-
WRITEINI Unknown command
-
MSG Unknown command
-
} Unknown command
-



Here is an example of what I wish it to look like in a ini file, but am unsure if it will work:"
[#Michaelukz]
BanList:
Bob=True:Reason:This was a test! Time:24hours
"

Any help?

In retrospect, I need to have the time BEFORE the reason but that I kinda derped on...