diff options
author | mertz | 2001-11-29 16:16:09 +0000 |
---|---|---|
committer | mertz | 2001-11-29 16:16:09 +0000 |
commit | a5a0156f449ee7fdd4a99b93127e6e073dae7d57 (patch) | |
tree | 6d3f766e44e600aaf30565688483e05142943057 | |
parent | 052a75f58b1560335b9d150ab82aad6665470cbe (diff) | |
download | ivy-perl-a5a0156f449ee7fdd4a99b93127e6e073dae7d57.zip ivy-perl-a5a0156f449ee7fdd4a99b93127e6e073dae7d57.tar.gz ivy-perl-a5a0156f449ee7fdd4a99b93127e6e073dae7d57.tar.bz2 ivy-perl-a5a0156f449ee7fdd4a99b93127e6e073dae7d57.tar.xz |
modif du man pour mieux expliquer le unbind
-rw-r--r-- | Ivy.pm | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -1888,6 +1888,8 @@ message that matches the regexp (case insensitive). See perlre(1) to find how to write regexps. Use the bracketing construct ( ... ) so that your callback is called with the captured bits of text as parameters. +To unbind callback(s) associated to a regexp use bindRegexp with only +one argument, the regexp. Example : $ivyobject->bindRegexp("\w+ (\d+)", [\&callback, @cb_parameters]); @@ -1896,7 +1898,7 @@ called with the captured bits of text as parameters. # the name of appli who send the message # Your callback and method must be like: - sub cb { + sub callback { my ($sendername, @cb_parameters, @matched_regexps_in_brackets) = @_; ... @@ -1908,6 +1910,9 @@ called with the captured bits of text as parameters. ... } + # to unbind: + $ivyobject->bindRegexp("\w+ (\d+)"); + =item B<sendDirectMsgs> $ivyobj->sendDirectMsgs($to, $id, @msgs); |