Format and add type specifications to doc strings in irc.py