Here's my next guess, now that you've given us a little more information:
Your string looks like this:
PRIVMSG #mychannel Link infos: Title of Page\r\n
In IRC, arguments are split on spaces, except that an argument that starts with a colon can include spaces, and runs to the end of the line. So, your target is #mychannel
, your message is Link
, and the whole rest of the line is a bunch of extra arguments that are ignored.
To fix this, you want to send:
PRIVMSG #mychannel :Link infos: Title of Page\r\n
So, change your code like this:
irc.send("PRIVMSG %s :Link infos:" % (channel) + urlTitle.contents[0] + "\r\n" )
For more details on how messages are formatted in RFC, and on the PRIVMSG
command, see 2.3.1 Message format in 'pseudo' BNF and 4.4.1 Private messages in RFC 1459.