Molson™ Posted October 12, 2008 Report Share Posted October 12, 2008 if (!$hget($right(#,-2) $+ aop,%address)) && (!$hget(globalaop,%address)) && (%nick != $mnick) && (:>* iswm %nick) { How come this doesn't work right? I just want it to halt it from adding guest nicks. Link to comment Share on other sites More sharing options...
Guest Travis Posted October 12, 2008 Report Share Posted October 12, 2008 (:>* iswm %nick) Don't you want to say !iswm? Link to comment Share on other sites More sharing options...
Molson™ Posted October 12, 2008 Author Report Share Posted October 12, 2008 naw, don't work neither. Link to comment Share on other sites More sharing options...
oasiz Posted October 12, 2008 Report Share Posted October 12, 2008 Remove the colon. (>*... Link to comment Share on other sites More sharing options...
Molson™ Posted October 13, 2008 Author Report Share Posted October 13, 2008 I guess no one knows how to fix it so it don't add guest nicks. Link to comment Share on other sites More sharing options...
Warrior124 Posted October 13, 2008 Report Share Posted October 13, 2008 (edited) Try this... if (!$hget($right(#,-2) $+ aop,%address)) && (!$hget(globalaop,%address)) && (%nick != $mnick) && (>* !iswm $nick(%nick).pnick) Edited October 13, 2008 by Warrior124 Link to comment Share on other sites More sharing options...
Molson™ Posted October 13, 2008 Author Report Share Posted October 13, 2008 I get invaild format "$nick" and line number. Link to comment Share on other sites More sharing options...
Fanfare Posted October 13, 2008 Report Share Posted October 13, 2008 (edited) Try regular expressions: if (!$hget($right(#,-2) $+ aop,%address)) && (!$hget(globalaop,%address)) && (%nick != $mnick) && (!$regex($nick,(\076))) { Or Use Travis' suggestion: if (>* iswm $nick) { return } These two methods will work. Edited October 13, 2008 by Fanfare Link to comment Share on other sites More sharing options...
Warrior124 Posted October 13, 2008 Report Share Posted October 13, 2008 You are correct. I accidentally left something out. This should work... if (!$hget($right(#,-2) $+ aop,%address)) && (!$hget(globalaop,%address)) && (%nick != $mnick) && (>* !iswm $nick(#,%nick).pnick) Link to comment Share on other sites More sharing options...
Guest Travis Posted October 13, 2008 Report Share Posted October 13, 2008 > is not a user mode. It should be a part of the nick name. Shouldn't need .pnick. Seriously molson .... a nickname is in the event. Does it start with a > ? If it does, /return. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now