summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Shchepin <alexey@process-one.net>2006-02-18 20:05:05 +0000
committerAlexey Shchepin <alexey@process-one.net>2006-02-18 20:05:05 +0000
commit0fd01cfff8237db8f202d3ca1c0e04c834d01875 (patch)
treebe889d90d53a1ba268986ce55e45f24096067695
parent* src/mod_irc/mod_irc_connection.erl: Added /msg and /ctcp (diff)
* src/mod_irc/mod_irc_connection.erl: Added handling for "%", "&"
and "~" prefixes in IRC nicknames (thanks to Vladimir Kulev) SVN Revision: 509
-rw-r--r--ChangeLog7
-rw-r--r--src/mod_irc/mod_irc_connection.erl3
2 files changed, 8 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 94a915ca..f26f2e0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,9 +1,12 @@
2006-02-18 Alexey Shchepin <alexey@sevcom.net>
+ * src/mod_irc/mod_irc_connection.erl: Added handling for "%", "&"
+ and "~" prefixes in IRC nicknames (thanks to Vladimir Kulev)
+
* src/mod_irc/mod_irc_connection.erl: Added /msg and /ctcp
commands, improved handling of channel topic and kick, mirc colors
- now filtered, other minor improvements (thanks to Oleg
- V. Motienko)
+ now filtered, other minor improvements (thanks to Oleg V. Motienko
+ and Magnus Henoch)
* src/mod_configure.erl: Improved strings (thanks to Sander
Devrieze)
diff --git a/src/mod_irc/mod_irc_connection.erl b/src/mod_irc/mod_irc_connection.erl
index d503d17a..53dc2c21 100644
--- a/src/mod_irc/mod_irc_connection.erl
+++ b/src/mod_irc/mod_irc_connection.erl
@@ -665,6 +665,9 @@ process_channel_list_user(StateData, Chan, User) ->
case User1 of
[$@ | U2] -> {U2, "admin", "moderator"};
[$+ | U2] -> {U2, "member", "participant"};
+ [$\% | U2] -> {U2, "admin", "moderator"};
+ [$& | U2] -> {U2, "admin", "moderator"};
+ [$~ | U2] -> {U2, "admin", "moderator"};
_ -> {User1, "member", "participant"}
end,
ejabberd_router:route(