How about this...

on @*:Topic:#channel:{
if ($nick = $me) { set %topic $1- }
else { topic $chan %topic }
}

Stores your change to the topic or returns topic to what you last set it to.