#!/usr/bin/python2
import lala
import ConfigParser
import sys

def main():
    """Main method"""
    config = ConfigParser.SafeConfigParser()
    config.read("config")
    lalaconfig = config._sections["lala"]
    if "-d" in sys.argv:
        debug = True
    else:
        debug = False
    if "nickserv_password" in lalaconfig:
        nickserv_password = lalaconfig["nickserv_password"]
    else:
        nick
    nickserv_password = lalaconfig["nickserv_password"] if "nickserv_password"\
            in lalaconfig else None
    plugins = lalaconfig["plugins"].split(",")
    bot = lala.Bot(
            server=lalaconfig["server"],
            admin=lalaconfig["admin"],
            port=int(lalaconfig["port"]),
            nick=lalaconfig["nick"],
            channel=lalaconfig["channel"],
            debug=debug,
            plugins=plugins,
            nickserv = nickserv_password
            )
    #try:
    bot.mainloop()
    #except RuntimeError, e:
        #print e

if __name__ == '__main__':
    main()

@@ -285,133 +285,8 @@
 lse%0A
-    if %22nickserv_password%22 in lalaconfig:%0A        nickserv_password = lalaconfig%5B%22nickserv_password%22%5D%0A    else:%0A        nick%0A
     

Remove that ... awkward... code