Your missing a closing bracket and you dont set %password and %mainnick you should make it ask them on load and then set the variable