changeset 496:ceeb8b3056de

mod_ircd: added channel modes' prefix declaration as some irc clients parse those to detect which mapping to use.
author Marco Cirillo <maranda@lightwitch.org>
date Mon, 05 Dec 2011 05:00:28 +0000 (2011-12-05)
parents 1a71e0e21a29
children 94756b0657b4
files mod_ircd/mod_ircd.in.lua
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mod_ircd/mod_ircd.in.lua	Mon Dec 05 04:08:11 2011 +0000
+++ b/mod_ircd/mod_ircd.in.lua	Mon Dec 05 05:00:28 2011 +0000
@@ -257,6 +257,8 @@
         session.send{from = muc_server, "002", nick, "Your host is "..muc_server.." running Prosody "..prosody.version};
         session.send{from = muc_server, "003", nick, "This server was created the "..os.date(nil, prosody.start_time)}
         session.send{from = muc_server, "004", nick, table.concat({muc_server, "mod_ircd(alpha-0.8)", "i", "aoqv"}, " ")};
+        session.send((":%s %s %s %s :%s"):format(muc_server, "005", nick, "CHANTYPES=# PREFIX=(qaov)~&@+", "are supported by this server"));
+	session.send((":%s %s %s %s :%s"):format(muc_server, "005", nick, "STATUSMSG=~&@+", "are supported by this server"));
         session.send{from = muc_server, "375", nick, "- "..muc_server.." Message of the day -"};
         session.send{from = muc_server, "372", nick, "-"};
         session.send{from = muc_server, "372", nick, "- Please be warned that this is only a partial irc implementation,"};