projects
/
erlbot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9e55d72
)
Use erlang: prefix for integer conversion
author
Matt Mullins
<mmullins@mmlx.us>
Wed, 16 Jan 2013 06:01:35 +0000
(22:01 -0800)
committer
Matt Mullins
<mmullins@mmlx.us>
Wed, 16 Jan 2013 06:01:35 +0000
(22:01 -0800)
Apparently R14A doesn't see integer_to_list/2 and list_to_integer/2 without
the erlang: prefix.
irc/irc_amqp_listener.erl
patch
|
blob
|
history
diff --git
a/irc/irc_amqp_listener.erl
b/irc/irc_amqp_listener.erl
index
0ed84a7
..
a5accc7
100644
(file)
--- a/
irc/irc_amqp_listener.erl
+++ b/
irc/irc_amqp_listener.erl
@@
-66,7
+66,7
@@
encode_character(Char) ->
Char >= $A, Char =< $Z ->
[$C, string:to_lower(Char)];
true ->
- [$X] ++ integer_to_list(Char, 16)
+ [$X] ++
erlang:
integer_to_list(Char, 16)
end.
%% @doc Decode a routing key, from the encoding specified for
@@
-83,7
+83,7
@@
decode_routing_key([], Acc) ->
decode_routing_key(RoutingKey, Acc) ->
This = case RoutingKey of
"X" ++ [H1, H2 | Tail] ->
- list_to_integer([H1, H2], 16);
+
erlang:
list_to_integer([H1, H2], 16);
"C" ++ [Char | Tail] ->
string:to_upper(Char);
[Anything | Tail] ->