Fix a segfault.

Caused by returning reference to temporary in the IRC client code.