I'm a bit confused why you do it like that. Can't you just use this structure?

Code:

[Misk]
pass=Kookame
chan=#MyRoom~Misk
Register=on


To check if login was correct:

if ($readini(Characters.ini,n,$3,pass) == $2) { ... }