projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
11dc539
)
fixed "Net Rider" kick crash
author
pk910
<philipp@zoelle1.de>
Thu, 15 Dec 2011 19:01:07 +0000
(20:01 +0100)
committer
pk910
<philipp@zoelle1.de>
Thu, 15 Dec 2011 19:01:07 +0000
(20:01 +0100)
src/IRCParser.c
patch
|
blob
|
history
diff --git
a/src/IRCParser.c
b/src/IRCParser.c
index c3fe086640afe7b54797ff80ee914bf5c879d8b8..d3c97a4955373692757171e140dcd0d58f998286 100644
(file)
--- a/
src/IRCParser.c
+++ b/
src/IRCParser.c
@@
-388,7
+388,7
@@
static IRC_CMD(raw_kick) {
struct UserNode *target = getUserByNick(argv[1]);
struct ChanNode *chan = getChanByName(argv[0]);
if(chan == NULL || target == NULL) return 0;
struct UserNode *target = getUserByNick(argv[1]);
struct ChanNode *chan = getChanByName(argv[0]);
if(chan == NULL || target == NULL) return 0;
- if(((!isBot(
user) && chan->chanbot != client->user) || (isBot(user) && client->user != user
))) return 1; //we ignore it - but it's not a parse error
+ if(((!isBot(
target) && chan->chanbot != client->user) || (isBot(target) && client->user != target
))) return 1; //we ignore it - but it's not a parse error
int keep_channel = 1;
if(isUserOnChan(target, chan) && (chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
if(user == NULL) {
int keep_channel = 1;
if(isUserOnChan(target, chan) && (chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
if(user == NULL) {