if(!irc_cmd) {
event_raw(client, from, cmd, argv, argc);
} else if(!ret) {
if(!irc_cmd) {
event_raw(client, from, cmd, argv, argc);
} else if(!ret) {
struct UserNode *user = getUserByMask(from);
if(user == NULL) return 0;
struct ChanNode *chan = getChanByName(argv[0]);
struct UserNode *user = getUserByMask(from);
if(user == NULL) return 0;
struct ChanNode *chan = getChanByName(argv[0]);
if(isUserOnChan(user, chan) && (chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
struct ChanUser *chanuser = getChanUser(user, chan);
delChanUser(chanuser, 0); //we need to free the chanuser manually!
if(isUserOnChan(user, chan) && (chan->flags & CHANFLAG_RECEIVED_USERLIST)) {
struct ChanUser *chanuser = getChanUser(user, chan);
delChanUser(chanuser, 0); //we need to free the chanuser manually!
struct UserNode *user = getUserByMask(from);
if(user == NULL) return 0;
delUser(user, 0); //a little bit crazy, but we want to delete the user on the channel's userlists - but not the users channel list
struct UserNode *user = getUserByMask(from);
if(user == NULL) return 0;
delUser(user, 0); //a little bit crazy, but we want to delete the user on the channel's userlists - but not the users channel list
if(user->flags & USERFLAG_ISBOT) {
//check if there are other bots in the users channel - otherwise free them
struct ChanUser *chanuser, *next;
if(user->flags & USERFLAG_ISBOT) {
//check if there are other bots in the users channel - otherwise free them
struct ChanUser *chanuser, *next;
static IRC_CMD(raw_invite) {
if(from == NULL || argc < 2) return 0;
struct UserNode *user = getUserByMask(from);
static IRC_CMD(raw_invite) {
if(from == NULL || argc < 2) return 0;
struct UserNode *user = getUserByMask(from);
- event_invite(user, argv[1]);
+ if(user == NULL) {
+ user = createTempUser(from);
+ user->flags |= USERFLAG_ISTMPUSER;
+ }
+ event_invite(client, user, argv[1]);