Because you changed the dclick code to send /notice to $nick which is only filled during certain $event and double-clicking in a @custom window isn't one of them. Change $nick back to $gettok($sline($active,1),2,32)

If you tweak the @display, you might need to use something other than the 2nd word, or strip chevron symbols from it.

Also, I ended my edit with a colon because I haven't figured out how to end the editbox text with a space to separate it from the target of the nick, but since you have the minxogram label you won't need it, though you might in that case use $+ $chr(160) to fake the space.