set rcon_tmp "/home/martbhell/nephilim/rcon_tmp.log"
set toput "PRIVMSG $chan"

                        set rtopic [lindex $arg 0]
                        set rtopik [lindex $arg 1]

                        if {$rtopic == "changelevel"} {
                                putserv "$toput $rtopik"
                                set rcon_file [open $rcon_tmp r]
                                while {![eof $rcon_file]} {
                                        gets $rcon_file line
                                        if {$line == $rtopik} {
                                        putserv "$toput :$line"
                                        }
                                close $rcon_file
                                return 0
                                }
                        }

When sending "!rcon changelevel asl" to $chan i want this part to search $rcon_tmp for asl
if it finds asl in a line, send that line to $chan. The above thingy doesnt work :D