projects
/
NeonServV5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Another year is about to end... So we have to update these damn copyright information :P
[NeonServV5.git]
/
src
/
cmd_neonserv_move.c
diff --git
a/src/cmd_neonserv_move.c
b/src/cmd_neonserv_move.c
index c837d797a7d14d3c956002bb41ddd50127397164..211247e8643c15e262aaaa280bd8fc8cc72948c9 100644
(file)
--- a/
src/cmd_neonserv_move.c
+++ b/
src/cmd_neonserv_move.c
@@
-1,5
+1,5
@@
-/* cmd_neonserv_move.c - NeonServ v5.
1
- * Copyright (C) 2011 Philipp Kreil (pk910)
+/* cmd_neonserv_move.c - NeonServ v5.
3
+ * Copyright (C) 2011
-2012
Philipp Kreil (pk910)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@
-80,17
+80,12
@@
CMD_BIND(neonserv_cmd_move) {
printf_mysql_query("DELETE FROM `owner_history` WHERE `owner_history_cid` = '%d'", chanid);
printf_mysql_query("DELETE FROM `channels` WHERE `channel_id` = '%d'", chanid);
}
printf_mysql_query("DELETE FROM `owner_history` WHERE `owner_history_cid` = '%d'", chanid);
printf_mysql_query("DELETE FROM `channels` WHERE `channel_id` = '%d'", chanid);
}
- printf_mysql_query("UPDATE `channels` SET `channel_name` = '%s' WHERE `channel_
id` = '%s'", escape_string(new_channel), row[1]
);
+ printf_mysql_query("UPDATE `channels` SET `channel_name` = '%s' WHERE `channel_
name` = '%s'", escape_string(new_channel), escape_string(channel)
);
struct ChanNode *channode = getChanByName(channel);
if(channode && channode->flags & CHANFLAG_REQUESTED_CHANINFO) {
channode->flags &= ~CHANFLAG_CHAN_REGISTERED;
channode->channel_id = 0;
}
struct ChanNode *channode = getChanByName(channel);
if(channode && channode->flags & CHANFLAG_REQUESTED_CHANINFO) {
channode->flags &= ~CHANFLAG_CHAN_REGISTERED;
channode->channel_id = 0;
}
- channode = getChanByName(new_channel);
- if(channode && channode->flags & CHANFLAG_REQUESTED_CHANINFO) {
- channode->flags |= CHANFLAG_CHAN_REGISTERED;
- channode->channel_id = atoi(row[1]);
- }
reply(getTextBot(), user, "NS_MOVE_DONE", channel, new_channel);
logEvent(event);
}
reply(getTextBot(), user, "NS_MOVE_DONE", channel, new_channel);
logEvent(event);
}