First, this obviously only changes the bot's modes on init, and not while the bot is already running.
It wasn't clear from your post that you wanted to change it while the eggdrop was currently connected. And a simple .restart will reconnect the bot and fix the modes set in the eggdrop.conf like the example given.
Second, it doesn't even seem to work, since neither of the 2 commands i have set in that script (modechange and service identification) seem to work.
can you paste what you have put for it, please. since if it dosen't work its more than likly down to human error and would probably help. If you wish to change the bots user modes while it is connected to an irc server. First, check that you have the dcc bind for the .tcl command enabled & then Secondly, dcc chat/telnet to the eggdrop's partyline and type
.tcl putserv "MODE $botnick [[+/-]the user mode(s) you want to set/unset on the eggdrop]"; return.
and that should about do it. Just incase that wasn't clear from the syntax, here is my example of setting user mode +i on the bot and remove the usermode +s:
.tcl putserv "MODE $botnick +i-s"; return and that would do that.