on ^hook "update %" switch ($tolower($1)) {
    (dcc_log) {
	if (dcc_log) {
	    @ :open_dcc_logfile = open($dcc_logfile W T)
	    @ write($open_dcc_logfile DCC Log started [$stime($time())])
	    @ close($open_dcc_logfile)
	}{
	    @ :open_dcc_logfile = open($dcc_logfile W T)
	    @ write($open_dcc_logfile DCC Log ended [$stime($time())])
	    @ close($open_dcc_logfile)
	}
    }
    (nick_comp) {
	if (nick_comp) {
	    ^stack push set nick_completion
	    ^set nick_completion off
	}{
	    ^stack pop set nick_completion
	}
    }
    (topicbar) {
	if (topicbar) {
	    ^window split on
	}{
	    ^window split off
	}
    }
    (topicbar_type) {
	switch ($topicbar_type) {
	    (1) {
		^wset * STATUS_FORMAT3 %-
	    }
	    (2) {
		^wset * STATUS_FORMAT3 %| %> %&
	    }
	}
    }
}

