[X2serv-cvs] [CVS] Module x2: Change committed
Brought to you by:
sirvulcan
From: Alex S. <ru...@us...> - 2004-06-11 14:45:19
|
Committer : Alex Schumann <ru...@us...> CVSROOT : /cvsroot/x2serv Module : x2 Commit time: 2004-06-11 14:45:11 UTC Modified files: source/parse.c source/parse.h Log message: silenced 443 error code wallop (generated when inviteme is called while already in a chan) ---------------------- diff included ---------------------- Index: x2/source/parse.c diff -u x2/source/parse.c:1.87 x2/source/parse.c:1.88 --- x2/source/parse.c:1.87 Wed Jun 9 23:30:04 2004 +++ x2/source/parse.c Fri Jun 11 07:45:00 2004 @@ -98,7 +98,8 @@ { "SH", m_noop, FALSE, TRUE }, { "OM", m_noop, TRUE, TRUE }, { "CM", m_noop, TRUE, TRUE }, - { "402", m_noop, TRUE, TRUE }, + { "402", m_logerror, TRUE, TRUE }, + { "443", m_logerror, TRUE, TRUE }, /* user is already on channel (invite attempt error) */ { "FA", m_sethost, TRUE, FALSE }, { NULL, NULL, FALSE, FALSE } }; @@ -122,6 +123,12 @@ return(0); } +int m_logerror(M_PARAMS) +{ + Debug(DBGINFO, "Uplink reported ERROR code: %s\n", rest); + return true; +} + int m_sethost(M_PARAMS) { /* TODO: Change the host part of the structure */ @@ -425,12 +432,10 @@ { account = (char *) strtok(NULL, " "); /* This user has an account set from another service */ } - /* if(strchr(modes, 'h')) { - hiddenhost = (char *) strtok(NULL, " "); * This user has an hidden hostmask (asuka only) * + hiddenhost = (char *) strtok(NULL, " "); /* This user has an hidden hostmask (asuka only) */ } - */ if(strchr(modes, 'f')) { hiddenhost = (char *) strtok(NULL, " "); /* This user has an hidden hostmask */ Index: x2/source/parse.h diff -u x2/source/parse.h:1.12 x2/source/parse.h:1.13 --- x2/source/parse.h:1.12 Wed Jun 9 16:33:03 2004 +++ x2/source/parse.h Fri Jun 11 07:45:00 2004 @@ -28,4 +28,4 @@ int m_kill(M_PARAMS); int m_squit(M_PARAMS); int m_sethost(M_PARAMS); - +int m_logerror(M_PARAMS); ----------------------- End of diff ----------------------- |