Does it do the same when you double-click a nick in the nick list? Did it get changed in options? The default setting is /query $$1

options (alt+o) > mouse > nick list