summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.c
diff options
context:
space:
mode:
authorRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
committerRobin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864>2008-09-30 18:45:12 +0000
commit173d5b4c116f4c0a4d9da0568f8d084eb06be36d (patch)
treef67824aca908eb8e414dab9720d6b440d283940b /src/protocol/bahamut.c
parent85e8e9eca082a49dfbd10ba3b2d8b24ba148cdd1 (diff)
Added cmd_svid_umode3() function to IRCDProtoNew class.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1261 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r--src/protocol/bahamut.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index e73e1f148..6b582fb5b 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -1193,13 +1193,10 @@ void BahamutIRCdProto::cmd_nc_change(User *u)
common_svsmode(u, "+d", "1");
}
-void bahamut_cmd_svid_umode3(User * u, const char *ts)
+void BahamutIRCdProto::cmd_svid_umode3(User *u, const char *ts)
{
- if (u->svid != u->timestamp) {
- common_svsmode(u, "+rd", ts);
- } else {
- common_svsmode(u, "+r", NULL);
- }
+ if (u->svid != u->timestamp) common_svsmode(u, "+rd", ts);
+ else common_svsmode(u, "+r", NULL);
}
int anope_event_error(const char *source, int ac, const char **av)
@@ -1384,7 +1381,6 @@ void moduleAddAnopeCmds()
pmodule_cmd_242(bahamut_cmd_242);
pmodule_cmd_243(bahamut_cmd_243);
pmodule_cmd_211(bahamut_cmd_211);
- pmodule_cmd_svid_umode3(bahamut_cmd_svid_umode3);
pmodule_cmd_svsjoin(bahamut_cmd_svsjoin);
pmodule_cmd_svspart(bahamut_cmd_svspart);
pmodule_cmd_swhois(bahamut_cmd_swhois);