You are right that hash symbols were used for IRC channels but I'm almost certain that hashtags were a Twitter invention.
They're both a symbol-with-label text convention for users, and in each case it designates a topic and mechanism for users of the service to converge-on the topic.