Skip to content
This repository
Browse code

Make the tell plugin gender aware

Tricky solution but it works.
Also a small change to binaries to test it.
  • Loading branch information...
commit df71ea33c347f5869c8bbb2d1b2384e4d0db6777 1 parent dab5098
Дамјан Георгиевски authored April 12, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  src/plugins/tell.erl
4  src/plugins/tell.erl
@@ -30,8 +30,8 @@ fancy_time({Mega,Sec,_Micro}) ->
30 30
 remember(Ref, Channel, Sender, Msg, State) ->
31 31
     Timestamp = erlang:now(),
32 32
     [Recepient | Message] = re:split(Msg, "[^a-zA-Z0-9^|_{}[\\]\\\\`-]", [{parts,2}]),
33  
-    Ref:notice(Sender, ["ok, I'll  pass that to ", Recepient, " when he's around."]),
34  
-    Key = string:to_lower(binary_to_list(Recepient)), 
  33
+    Ref:notice(Sender, <<"ok, I'll  pass that on when ", Recepient/binary, " is around.">>),
  34
+    Key = string:to_lower(binary_to_list(Recepient)),
35 35
     {ok, dict:append(Key, {Timestamp, Channel, Sender, Message}, State)}.
36 36
 
37 37
 reminder(Ref, Nick, State) ->

0 notes on commit df71ea3

Please sign in to comment.
Something went wrong with that request. Please try again.