summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormertz2001-11-29 16:16:09 +0000
committermertz2001-11-29 16:16:09 +0000
commita5a0156f449ee7fdd4a99b93127e6e073dae7d57 (patch)
tree6d3f766e44e600aaf30565688483e05142943057
parent052a75f58b1560335b9d150ab82aad6665470cbe (diff)
downloadivy-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.pm7
1 files changed, 6 insertions, 1 deletions
diff --git a/Ivy.pm b/Ivy.pm
index 0e1d37e..947afda 100644
--- a/Ivy.pm
+++ b/Ivy.pm
@@ -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);