Reminder that it's a big help to use the # icon in the post template to paste your alias inside a CODE block, as some people won't even look at the script because it's really hard to read long scripts without doing that.

Your alias is using /echo to output the display to $2, and your alias is called with $2 being the channel they joined, as the command:

NickNames.display $nick $chan $network $wildsite

You can replace $chan with the literal #AKA if you want it to go there instead, though the script should make certain that $window($2) exists before sending output to it, otherwise the #channel string is treated like some random #word to be echoed instead of being the destination.

Something else about your script. It appears that the AKA's are listed in the order in which they were first seen, so if you want them to instead be alphabetical order, find

$hget(NickNames,$+($3,$4))

and change to

$sorttok($hget(NickNames,$+($3,$4)),126)