summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/irc/core/irc-servers.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/irc/core/irc-servers.c b/src/irc/core/irc-servers.c
index fa7feda6..872dbbfd 100644
--- a/src/irc/core/irc-servers.c
+++ b/src/irc/core/irc-servers.c
@@ -169,7 +169,11 @@ static char **split_message(SERVER_REC *server, const char *target,
const char *msg)
{
IRC_SERVER_REC *ircserver = IRC_SERVER(server);
- int userhostlen = 63; /* Maximum length defined by protocol. */
+ /*
+ * 63 is the maxmium hostname length defined by the protocol. 10 is
+ * a common username limit on many networks. 1 is for the `@'.
+ */
+ int userhostlen = 63 + 10 + 1;
g_return_val_if_fail(ircserver != NULL, NULL);
g_return_val_if_fail(target != NULL, NULL);