[project @ 2002-11-03 22:42:59 by unknown_lamer]
authorunknown_lamer <unknown>
Sun, 3 Nov 2002 22:42:59 +0000 (22:42 +0000)
committerunknown_lamer <unknown>
Sun, 3 Nov 2002 22:42:59 +0000 (22:42 +0000)
Made Mask::match case insensitive

ChangeLog
TODO
source/Mask.C

index b1595ce..e894f61 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2002-11-03  Clinton Ebadi  <clinton@unknownlamer.org>
+
+       * source/Mask.C (match): Made Mask::match case insensitive
+
 2002-09-23  Clinton Ebadi  <clinton@unknownlamer.org>
 
        * source/Interp.C (scm_apply_wrapper): turned off locking of
diff --git a/TODO b/TODO
index b2e121f..2fb3333 100644 (file)
--- a/TODO
+++ b/TODO
@@ -15,14 +15,16 @@ Scripting:
    - return an iterator to the Hook
    - this would require a new SMOB to be created
    - Scheme could pass Hook objects around and do nifty things
+   - At least allow all hooks of a type with the same name field to be
+     deleted at once (also all hooks with the same name). Also allow
+     deleting based on the regexp
 * Finish adding commands to Scheme for sending messages
-   (e.g. bot:send-CTCP to send a CTCP message)
+  (e.g. bot:send-CTCP to send a CTCP message)
 * Add util functions for doing stuff like quoting CTCP messages
 * Finish adding hooks/send hooks
 * Lock around Guile Operations
 
 Networking:
-+ Add functions to talk to DCC chatters
 * Add a networked interface to guile repl
    - Admins only
    - Telnet
@@ -40,5 +42,4 @@ Documentation:
 
 Other (post 2.2 release):
 * Remove gh_* when Guile 1.8 is released
-* Make it possible to use Scheme functions in the Parser itself
-* Complete rewrite ;-)
\ No newline at end of file
+* Make it possible to use Scheme functions in the Parser itself
\ No newline at end of file
index adb5aef..36b1340 100644 (file)
@@ -68,7 +68,7 @@ Mask::match(const char * m, const char * n)
     }
   }
 
-  if ((m[0] == n[0]) ||
+  if ((std::tolower (m[0]) == std::tolower (n[0])) ||
       (m[0] == '?') ||
       ((m[0] == '\\') && ((m[1] == '?' && n[0] == '?') ||
                           (m[1] == '*' && n[0] == '*'))))