summaryrefslogtreecommitdiff
path: root/src/protocol/bahamut.c
diff options
context:
space:
mode:
authorrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 22:29:18 +0000
committerrburchell <rburchell@5417fbe8-f217-4b02-8779-1006273d7864>2009-02-15 22:29:18 +0000
commitd1611b640bcd27e1a91a99ef32127bc722e50a36 (patch)
treeb18c77b07b74b70f5613b106aa2a81baa6227f35 /src/protocol/bahamut.c
parent0e5b71923b25d908167e7ef9d07c6c217827e901 (diff)
Remove User::na, use User::nc everywhere. Will probably break everything, but opens the door to decoupling NC from NA, and means commands can now be run without bothering about changinc nick :)
More tweaking for na/nc usage. It compiles, but it's still a work in progress. Again, this compiles, but I *bet* there's no chance in hell it'll work. :) Slightly better. Set User::nc correctly. Fix crash with unregistered nicks in core and ns_access. Fix glist to work when you're not on that particular nick. Fix ns_set to not crash and burn horribly. Fix ns_set and ns_logout to not do bad things. git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2076 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/protocol/bahamut.c')
-rw-r--r--src/protocol/bahamut.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/protocol/bahamut.c b/src/protocol/bahamut.c
index f5a62116a..5e0b5a7a4 100644
--- a/src/protocol/bahamut.c
+++ b/src/protocol/bahamut.c
@@ -494,7 +494,6 @@ class BahamutIRCdProto : public IRCDProto
}
--ac;
++av;
- user->svid = strtoul(*av, NULL, 0);
break;
case 'o':
if (add) {
@@ -685,25 +684,12 @@ class BahamutIRCdProto : public IRCDProto
}
/* SVSMODE +d */
- /* sent if svid is something weird */
- void SendSVID(const char *nick, time_t ts)
- {
- send_cmd(ServerName, "SVSMODE %s %lu +d 1", nick, static_cast<unsigned long>(ts));
- }
-
- /* SVSMODE +d */
/* nc_change was = 1, and there is no na->status */
void SendUnregisteredNick(User *u)
{
common_svsmode(u, "+d", "1");
}
- void SendSVID3(User *u, const char *ts)
- {
- if (u->svid != u->timestamp) common_svsmode(u, "+rd", ts);
- else common_svsmode(u, "+r", NULL);
- }
-
int IsFloodModeParamValid(const char *value)
{
char *dp, *end;
@@ -761,13 +747,13 @@ int anope_event_nick(const char *source, int ac, const char **av)
if (ac != 2) {
user = do_nick(source, av[0], av[4], av[5], av[6], av[9],
strtoul(av[2], NULL, 10), strtoul(av[7], NULL, 0),
- strtoul(av[8], NULL, 0), NULL, NULL);
+ NULL, NULL);
if (user) {
ircdproto->ProcessUsermodes(user, 1, &av[3]);
}
} else {
do_nick(source, av[0], NULL, NULL, NULL, NULL,
- strtoul(av[1], NULL, 10), 0, 0, NULL, NULL);
+ strtoul(av[1], NULL, 10), 0, NULL, NULL);
}
return MOD_CONT;
}