It has always been working, that's why I liked $*tok identifiers.
Btw, you'd better get the IP address from the CTCP command (I suppose you know that dcc requests are ctcps) rather than the notice. That's because the IP in notice can be faked, while the IP in ctcp cannot, since it's the IP that the sender wants you to connect to. Example:
ctcp *:dcc send *?:?: if $regex($1-,/^dcc send (\S+|".+?") (\d+)/i) { var %file = $regml(1), %ip = $longip($regml(2)) | echo -s Filename: %file , IP: %ip }