summaryrefslogtreecommitdiff
path: root/src/protocol/ratbox.cpp
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-29 20:44:31 -0400
committerAdam <Adam@anope.org>2010-06-18 21:04:08 -0400
commitb8f9116b19eb511c4f5e6a683725f50bf732a7dd (patch)
treea5848c9797ec4dc3477621fc42211f4985eaec7b /src/protocol/ratbox.cpp
parent435c9116e9997634eb7215e998c8f01a5e46fb2c (diff)
Rewrote all of the command handling to get rid of all the nasty strtoks() everywhere, and added a bot map by uid
Diffstat (limited to 'src/protocol/ratbox.cpp')
-rw-r--r--src/protocol/ratbox.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/protocol/ratbox.cpp b/src/protocol/ratbox.cpp
index 95ccf6392..339113e33 100644
--- a/src/protocol/ratbox.cpp
+++ b/src/protocol/ratbox.cpp
@@ -378,7 +378,7 @@ int anope_event_sjoin(const char *source, int ac, const char **av)
Status.push_back(cm);
}
- User *u = find_byuid(buf);
+ User *u = finduser(buf);
if (!u)
{
Alog(LOG_DEBUG) << "SJOIN for nonexistant user " << buf << " on " << c->name;
@@ -507,7 +507,7 @@ int anope_event_topic(const char *source, int ac, const char **av)
if (ac > 1 && *av[1])
c->topic = sstrdup(av[1]);
- u = find_byuid(source);
+ u = finduser(source);
c->topic_setter = u ? u->nick : source;
c->topic_time = topic_time;
@@ -590,7 +590,7 @@ int anope_event_away(const char *source, int ac, const char **av)
{
User *u = NULL;
- u = find_byuid(source);
+ u = finduser(source);
m_away(u ? u->nick.c_str() : source, (ac ? av[0] : NULL));
return MOD_CONT;
}
@@ -642,7 +642,7 @@ int anope_event_privmsg(const char *source, int ac, const char **av)
return MOD_CONT;
}
- u = find_byuid(source);
+ u = finduser(source);
bi = findbot(av[0]);
// XXX: this is really the same as charybdis
m_privmsg(source, av[0], av[1]);
@@ -657,7 +657,7 @@ int anope_event_part(const char *source, int ac, const char **av)
return MOD_CONT;
}
- u = find_byuid(source);
+ u = finduser(source);
do_part(u ? u->nick.c_str() : source, ac, av);
return MOD_CONT;
@@ -715,7 +715,7 @@ int anope_event_quit(const char *source, int ac, const char **av)
return MOD_CONT;
}
- u = find_byuid(source);
+ u = finduser(source);
do_quit(u ? u->nick.c_str() : source, ac, av);
return MOD_CONT;
@@ -732,8 +732,8 @@ int anope_event_mode(const char *source, int ac, const char **av)
if (*av[0] == '#' || *av[0] == '&') {
do_cmode(source, ac, av);
} else {
- u = find_byuid(source);
- u2 = find_byuid(av[0]);
+ u = finduser(source);
+ u2 = finduser(av[0]);
av[0] = u2->nick.c_str();
do_umode(u->nick.c_str(), ac, av);
}