
Monkplayer |

Here is the rule:
Confused
A confused creature is mentally befuddled and cannot act normally. A confused creature cannot tell the difference between ally and foe, treating all creatures as enemies. Allies wishing to cast a beneficial spell that requires a touch on a confused creature must succeed on a melee touch attack. If a confused creature is attacked, it attacks the creature that last attacked it until that creature is dead or out of sight.
Roll on the following table at the beginning of each confused subject's turn each round to see what the subject does in that round.
d% Behavior
01–25 Act normally.
26–50 Do nothing but babble incoherently.
51–75 Deal 1d8 points of damage + Str modifier to self with item in hand.
76–100 Attack nearest creature (for this purpose, a familiar counts as part of the subject's self).
A confused creature who can't carry out the indicated action does nothing but babble incoherently. Attackers are not at any special advantage when attacking a confused creature. Any confused creature who is attacked automatically attacks its attackers on its next turn, as long as it is still confused when its turn comes. Note that a confused creature will not make attacks of opportunity against anything that it is not already devoted to attacking (either because of its most recent action or because it has just been attacked).
QUESTION:
How is this cured by a 8th level cleric?

Monkplayer |

The character's memory was affected by a Memory Moss.
QUESTION: Is it a spell like effect that can be dismissed by a Dispel Magic spell?
Here is the details on a Memory Moss;
Memory Moss (Hazard, Plant [Fungus]) CR 5
XP 1,600
Hazard, Plant (fungus)
Memory moss appears as a 5-foot square patch of black moss. It grows in temperate or warm climates and is sometimes encountered in subterranean realms. Memory moss cannot abide the cold or the arid clime of the desert and is never encountered in such environments.
When A Living Creature Moves Within 60 Feet Of A Patch Of Memory Moss, It Attacks By Attempting To Steal That Creatures Memories. It Can Target A Single Creature Each Round. A Targeted Creature Must Succeed On A Dc 16 Will Save Or Lose All Memories From The Last 24 Hours.
This is particularly nasty to spellcasters, who lose all spells prepared within the last 24 hours. (Only those spells actually prepared in the last 24 hours are lost; spells prepared longer than 24 hours ago are not lost.)
Once a memory moss steals a creature�s memories, it sinks back down and does not attack again for one day. If a creature loses its memories to the memory moss, it acts as if affected by a confusion spell (CL 8th) for the next 1d4 hours. Lost memories can be regained by eating the memory moss that absorbed them. Doing so requires a DC 13 Fortitude save, with failure resulting in the creature being nauseated for 1d6 minutes and suffering 1d4 points of Constitution damage.
A creature that eats the memory moss temporarily gains the memories currently stored therein (even if they are not the creature�s own memories). Such creatures can even cast spells if the memory moss has stolen these from a spellcasting creature. Any non-spellcaster that attempts to cast a spell gained in this way must succeed on a concentration check (DC 10 + spell level) or the spell fizzles away. After 24 hours, the memories fade (including any spells not yet cast). Creatures eating the memory moss to regain their own lost memories do not lose them after 24 hours. Cold and fire kills a single patch of memory moss.
When first encountered there is a 25% chance that the memory moss has eaten within the last day and does not attack by stealing memories. In such a case, the moss contains 2d4 spells determined randomly (use the arcane or divine spell scroll tables). When a living creature moves within 60 feet of a sated memory moss, it assumes a vaguely humanoid form and casts the stolen spells at its targets. The moss casts these spells as a sorcerer of the minimum level necessary to cast the stolen spell (save DC 10 + spell level).

Isil-zha |
Once a memory moss steals a creature's memories, it sinks back down and does not attack again for one day. If a creature loses its memories to the memory moss, it acts as if affected by a confusion spell (CL 8th)
There you go, as if affected by the spell, and it gives you the casterlevel for the dispel attempt.

Majuba |

I'm guessing you forcefed him the moss while he was confused (or while he was acting normally?) Eating it doesn't cause confusion. It says "if you lose your memories, you're confused" - he's no longer lost his memories, so he should be fine.
Either way, dispel magic should work if he is still confused.