diff options
author | Adam <Adam@anope.org> | 2010-08-27 13:44:30 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-08-27 13:44:30 -0400 |
commit | 73fb94c55344b6ad788c925bf13325236402891f (patch) | |
tree | 48ac3308448b8494074d8e6c326adf75ddbacdc0 /src/channels.cpp | |
parent | ea9b945830166ff237799460aba6236e4132a075 (diff) |
Added an Anope::string::is_pos_number_only function to use everywhere we convertTo unsigned values, and
fixed the mail delay error message to give the correct time.
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 65668a6d6..aa2e0affc 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -1145,7 +1145,7 @@ void do_join(const Anope::string &source, int ac, const char **av) /* Join came with a TS */ if (ac == 2) { - time_t ts = Anope::string(av[1]).is_number_only() ? convertTo<time_t>(av[1]) : 0; + time_t ts = Anope::string(av[1]).is_pos_number_only() ? convertTo<time_t>(av[1]) : 0; /* Their time is older, we lose */ if (chan->creation_time > ts) @@ -1309,7 +1309,7 @@ void do_topic(const Anope::string &source, int ac, const char **av) { Channel *c = findchan(av[0]); ChannelInfo *ci; - time_t topic_time = Anope::string(av[2]).is_number_only() ? convertTo<time_t>(av[2]) : 0; + time_t topic_time = Anope::string(av[2]).is_pos_number_only() ? convertTo<time_t>(av[2]) : 0; if (!c) { |